Visit Mozilla.org

nsIWindowCreator

From MDC

nsIWindowCreator is a callback interface used by Gecko to create new browser windows. The application, either Mozilla or an embedding app, must provide an implementation of the Window Watcher component and notify the WindowWatcher during application initialization. See nsIWindowWatcher for more details.

Contents

nsIWindowCreator is defined in embedding/base/nsIWindowCreator.idl. It is scriptable and has been frozen since Mozilla 0.9.6.

Inherits from: nsISupports

[edit] Method overview

nsIWebBrowserChrome createChromeWindow(in nsIWebBrowserChrome parent,in PRUint32 chromeFlags);

[edit] Methods

[edit] createChromeWindow()

Create a new window. Gecko will/may call this method, if made available to it, to create new windows.

 nsIWebBrowserChrome createChromeWindow(
   in nsIWebBrowserChrome parent,
   in PRUint32 chromeFlags
 );
[edit] Parameters
parent
The nsIWebBrowserChrome of the parent window, if any. null if no parent exists. The newly created window should be made a child/dependent window of the parent, if any (and if the concept applies to the underlying OS).
chromeFlags
Chrome features from nsIWebBrowserChrome.
[edit] Return value

An nsIWebBrowserChrome for the new window.