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.
nsIWebBrowserChrome
This interface must be implemented by the embedder in a class that also implements
nsIEmbeddingSiteWindow
. It corresponds to the top-level, outermost window containing an embedded Gecko WebBrowser. It is scriptable.Called when the status text in the chrome needs to be updated (e.g., when mousing over a link).
Syntax:
void nsIWebBrowserChrome::setStatus( in unsigned long statusType, in wstring status)Parameters:
nsresult :
Destroys the window associated with the WebBrowser object.
Syntax:
void nsIWebBrowserChrome::destroyBrowserWindow()Parameters:
nsresult :
Resizes the chrome so that the browser will be the specified size.
Syntax:
void nsIWebBrowserChrome::sizeBrowserTo( in long aCX, in long aCY)Parameters:
nsresult:
Shows the window as a modal window.
Syntax:
void nsIWebBrowserChrome::showAsModal()Parameters:
nsresult:
Indicates if the window is currently executing a modal loop.
Syntax:
boolean nsIWebBrowserChrome::isWindowModal()Parameters:
Returns:
Exits a modal event loop if one is active. The implementation should also exit the loop if the window is destroyed.
Syntax:
void nsIWebBrowserChrome::exitModalEventLoop( in nsresult aStatus)Parameters:
Returns:
Accesses the currently loaded WebBrowser. The browser chrome may be told to set the WebBrowser object to a new object by setting this attribute. In this case the implementer is responsible for taking the new WebBrowser object and doing any necessary initialization or setup as if it had created the WebBrowser itself. This includes positioning, setting up listeners, and so forth.
Accesses the chrome flags for this browser chrome. The implementation should reflect the value of this attribute by hiding or showing its chrome appropriately. See below for possible values.
These constants are possible values for
setStatus
above.These are the standard values for the
chromeFlags
attribute above.These flags are specifically for use with
nsIWindowCreator
.These flags represent special cases.
Note: The modal style bit (
CHROME_MODAL
) simply affects the way the window looks and does not mean that the window is actually modal.
Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |