You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

Embedding Gecko API


nsIWindowCreator


This is a embedder-provided callback interface used by Gecko to create new browser windows in certain specific circumstances, like in utilizing PSM. A WindowWatcher component must also be available, and must be notified of the nsIWindowCreator during application initialization. This interface is not scriptable.

See also: nsIWindowWatcher

Methods
createChromeWindow

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

Syntax:

nsIWebBrowserChrome nsIWindowCreator::createChromeWindow(
	in nsIWebBrowserChrome parent,
	in PRUint32 chromeFlags) 

Parameters:

parent: The parent window, if one exists, or 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.

Returns:

The new window.

Written by:Ellen Evans | Comments, questions, complaints? Bug 143387
TOC PREV NEXT INDEX