Looking For

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