#include "nsCOMPtr.h"
#include "nsIGenericFactory.h"
#include "nsStringAPI.h"
#include "nsIWebBrowserChrome.h"
#include "nsIEmbeddingSiteWindow.h"
#include "nsIWebNavigation.h"
#include "nsIWebBrowser.h"
#include "nsIDocShellTreeItem.h"
#include "nsIBaseWindow.h"
#include "nsIWindowCreator.h"
#include "WebBrowser.h"
#include "WebBrowserChrome.h"

NS_EXPORT void *
WebBrowser_Create()
{
	WebBrowserChrome* wbc = new WebBrowserChrome();
	return (void *)wbc;
}

NS_EXPORT void
WebBrowser_Destroy(void * wbc)
{
	delete (WebBrowserChrome*)(wbc);
}

NS_EXPORT int
WebBrowser_CreateBrowser(void * wbc,HWND hWnd, PRInt32 X, PRInt32 Y,
                                PRInt32 CX, PRInt32 CY,
                                nsIWebBrowser **aBrowser)
{
	
	
	return ((WebBrowserChrome*)wbc)->CreateBrowser(hWnd,X,Y,CX,CY,aBrowser);
}
