Thanks for your help but GetMainWidget return the parent widget of
chrome window and not chrome widget pointer.
I tried following code but that seems to be very complex ..
nsCOMPtr webBrowser;
nsCOMPtr webNavigation;
nsCOMPtr
I've embedded Gecko into an App I've created...sorta a web browser, but very
limited and very customized for what we need. Here is my problem. When I'm
browsing around the web with it, the nsIDOMWindow::SizeToContent () works
great (I call it after the page has loaded on
nsIWebProgressListener::O
It looks like the documentation typedefs the nsWindow as an nsBaseWidget.
So maybe you can try something like this:
//--
---
nsIWebBrowser *piwbWebBrowser = nsnull;
nsIBaseWindow *pibwBaseWindow = nsnull;
nsWindow *pWindow = n