nsIWebBrowserChrome
| IID: | BA434C60-9D52-11d3-AFB0-00A024FFC08C |
| Inherits From: | nsISupports |
| Status: | FROZEN |
nsIWebBrowserChrome corresponds to the top-level, outermost window containing an embedded Gecko web browser.
Constants
Properties
PRUint32 chromeFlags
The chrome flags for this browser chrome. The implementation should reflect the value of this attribute by hiding or showing its chrome appropriately.
nsIWebBrowser webBrowser
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.
Methods
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.
void exitModalEventLoop ( nsresult status )
Exit a modal event loop if we're in one. The implementation should also exit out of the loop if the window is destroyed.
- Arguments:
- status: - the result code to return from showAsModal
Is the window modal (that is, currently executing a modal loop)?
- Returns:
- true if it's a modal window
void setStatus ( PRUint32 statusType , PRUnichar* status )
Called when the status text in the chrome needs to be updated.
- Arguments:
- 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.
- Returns:
- (the function error code) the status value specified by in exitModalEventLoop.
void sizeBrowserTo ( PRInt32 CX , PRInt32 CY )
Tells the chrome to size itself such that the browser will be the specified size.
- Arguments:
- CX: new width of the browser
- CY: new height of the browser
References
This interface is the type of the following properties:
This interface is passed as an argument to the following methods:
nsIWindowCreator.createChromeWindow, nsIWindowCreator2.createChromeWindow2, nsPIWindowWatcher.addWindow
This interface is returned from the following methods:
nsIWindowCreator.createChromeWindow, nsIWindowCreator2.createChromeWindow2, nsIWindowWatcher.getChromeForWindow
Reference documentation is generated from Mozilla's source.
