nsIWebBrowserChrome corresponds to the top-level, outermost window containing an embedded Gecko web browser.
The chrome flags for this browser chrome. The implementation should reflect the value of this attribute by hiding or showing its chrome appropriately.
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 etc.
void destroyBrowserWindow ( )
void exitModalEventLoop ( nsresult status )
PRBool isWindowModal ( )
void setStatus ( PRUint32 statusType , PRUnichar* status )
void showAsModal ( )
void sizeBrowserTo ( PRInt32 CX , PRInt32 CY )
Asks the implementer to destroy the window associated with this WebBrowser object.
Exit a modal event loop if we're in one. The implementation should also exit out of the loop if the window is destroyed.
- status: - the result code to return from showAsModal
Is the window modal (that is, currently executing a modal loop)?
- true if it's a modal window
Called when the status text in the chrome needs to be updated.
- statusType: indicates what is setting the text
- status: status string. null is an acceptable value meaning no status.
Shows the window as a modal window.
- (the function error code) the status value specified by in exitModalEventLoop.
Tells the chrome to size itself such that the browser will be the specified size.
- CX: new width of the browser
- CY: new height of the browser
This interface is the type of the following properties:
This interface is passed as an argument to the following methods:
This interface is returned from the following methods:
Reference documentation is generated from Mozilla's source.