nsIWindowCreator2

IID:f673ec81-a4b0-11d6-964b-eb5a2bf216fc
Inherits From:nsIWindowCreator

Constants

Definitions for contextFlags
PRUint32 PARENT_IS_LOADING_OR_RUNNING_TIMEOUT = 1

Methods

[noscript] nsIWebBrowserChrome createChromeWindow2 ( nsIWebBrowserChrome parent , PRUint32 chromeFlags , PRUint32 contextFlags , nsIURI uri , out PRBool cancel )

nsIWebBrowserChrome createChromeWindow2 ( nsIWebBrowserChrome parent , PRUint32 chromeFlags , PRUint32 contextFlags , nsIURI uri , out PRBool cancel )

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

Arguments:
parent: Parent window, if any. Null if not. 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
contextFlags: Flags about the context of the window being created.
uri: The URL for which this window is intended. It can be null or zero-length. The implementation of this interface may use the URL to help determine what sort of window to open or whether to cancel window creation. It will not load the URL.
cancel: Return |true| to reject window creation. If true the implementation has determined the window should not be created at all. The caller should not default to any possible backup scheme for creating the window.
Returns:
the new window. Will be null if canceled or an error occurred.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com