@mozilla.org/embedding/browser/nsWebBrowser;1
This component implements the following interfaces:
- nsIBaseWindow
- nsIDocShellTreeItem
- nsIInterfaceRequestor
- nsIScrollable
- nsISupports
- nsISupportsWeakReference
- nsITextScroll
- nsIWebBrowser
- nsIWebBrowserFocus
- nsIWebBrowserPersist
- nsIWebBrowserSetup
- nsIWebNavigation
- nsIWebProgressListener
Constants
Properties
PRBool nsIBaseWindow.blurSuppression
Set blurSuppression to true to suppress handling of blur events. set it false to re-enable them. query it to determine whether blur events are suppressed. The implementation should allow for blur events to be suppressed multiple times.
readonly PRBool nsIWebNavigation.canGoBack
Indicates if the object can go back. If true this indicates that there is back session history available for navigation.
readonly PRBool nsIWebNavigation.canGoForward
Indicates if the object can go forward. If true this indicates that there is forward session history available for navigation
readonly PRInt32 nsIDocShellTreeNode.childCount
nsIWebBrowserChrome nsIWebBrowser.containerWindow
The chrome object associated with the browser instance. The embedder
must create one chrome object for each browser object
that is instantiated. The embedder must associate the two by setting
this property to point to the chrome object before creating the browser
window via the browser's nsIBaseWindow interface.
The chrome object must also implement nsIEmbeddingSiteWindow.
The chrome may optionally implement nsIInterfaceRequestor,
nsIWebBrowserChromeFocus,
nsIContextMenuListener and
nsITooltipListener to receive additional notifications
from the browser object.
The chrome object may optionally implement nsIWebProgressListener
instead of explicitly calling addWebBrowserListener and
removeWebBrowserListener to register a progress listener
object. If the implementation does this, it must also implement
nsIWeakReference.
readonly nsIDOMWindow nsIWebBrowser.contentDOMWindow
The top-level DOM window. The embedder may walk the entire DOM starting from this value.
readonly PRUint32 nsIWebBrowserPersist.currentState
Current state of the persister object.
readonly nsIURI nsIWebNavigation.currentURI
The currently loaded URI or null.
readonly nsIDOMDocument nsIWebNavigation.document
Retrieves the current DOM document for the frame, or lazily creates a blank document if there is none. This attribute never returns null except for unexpected error situations.
PRBool nsIBaseWindow.enabled
nsIDOMElement nsIWebBrowserFocus.focusedElement
The currently focused nsDOMElement when the browser is active, or the last focused nsDOMElement when the browser is inactive.
nsIDOMWindow nsIWebBrowserFocus.focusedWindow
The currently focused nsDOMWindow when the browser is active, or the last focused nsDOMWindow when the browser is inactive.
PRInt32 nsIDocShellTreeItem.itemType
readonly nsIWidget nsIBaseWindow.mainWidget
PRUnichar* nsIDocShellTreeItem.name
The nsIDocShellTreeItem supplies the methods that are required of any item that wishes to be able to live within the docshell tree either as a middle node or a leaf.
readonly nsIDocShellTreeItem nsIDocShellTreeItem.parent
nativeWindow nsIBaseWindow.parentNativeWindow
nsIURIContentListener nsIWebBrowser.parentURIContentListener
URI content listener parent. The embedder may set this property to their own implementation if they intend to override or prevent how certain kinds of content are loaded.
nsIWidget nsIBaseWindow.parentWidget
PRUint32 nsIWebBrowserPersist.persistFlags
Flags governing how data is fetched and saved from the network. It is best to set this value explicitly unless you are prepared to accept the default values.
nsIWebProgressListener nsIWebBrowserPersist.progressListener
Callback listener for progress notifications. The object that the embbedder supplies may also implement nsIInterfaceRequestor and be prepared to return nsIAuthPrompt or other interfaces that may be required to download data.
readonly nsIURI nsIWebNavigation.referringURI
The referring URI for the currently loaded URI or null.
readonly PRUint32 nsIWebBrowserPersist.result
Value indicating the success or failure of the persist operation.
readonly nsIDocShellTreeItem nsIDocShellTreeItem.rootTreeItem
readonly nsIDocShellTreeItem nsIDocShellTreeItem.sameTypeParent
readonly nsIDocShellTreeItem nsIDocShellTreeItem.sameTypeRootTreeItem
nsISHistory nsIWebNavigation.sessionHistory
The session history object used by this web navigation instance.
PRUnichar* nsIBaseWindow.title
readonly nsIDocShellTreeOwner nsIDocShellTreeItem.treeOwner
PRBool nsIBaseWindow.visibility
Methods
| Interface | Method |
|---|---|
| nsIWebBrowserFocus |
void activate ( )
|
| nsIDocShellTreeNode |
void addChild ( nsIDocShellTreeItem child )
|
| nsIWebBrowser |
void addWebBrowserListener ( nsIWeakReference listener , nsIIDRef IID )
|
| nsICancelable |
void cancel ( nsresult reason )
|
| nsIWebBrowserPersist |
void cancelSave ( )
|
| nsIBaseWindow |
void create ( )
|
| nsIWebBrowserFocus |
void deactivate ( )
|
| nsIBaseWindow |
void destroy ( )
|
| nsIDocShellTreeNode |
nsIDocShellTreeItem findChildWithName ( PRUnichar* name , PRBool recurse , PRBool sameType , nsIDocShellTreeItem requestor , nsIDocShellTreeItem originalRequestor )
|
| nsIDocShellTreeItem |
nsIDocShellTreeItem findItemWithName ( PRUnichar* name , nsISupports requestor , nsIDocShellTreeItem originalRequestor )
|
| nsIDocShellTreeNode |
nsIDocShellTreeItem getChildAt ( PRInt32 index )
|
| nsIScrollable |
PRInt32 getCurScrollPos ( PRInt32 scrollOrientation )
|
| nsIScrollable |
PRInt32 getDefaultScrollbarPreferences ( PRInt32 scrollOrientation )
|
| nsIInterfaceRequestor |
void getInterface ( nsIIDRef uuid , out nsQIResult* result )
|
| nsIBaseWindow |
void getPosition ( out PRInt32 x , out PRInt32 y )
|
| nsIBaseWindow |
void getPositionAndSize ( out PRInt32 x , out PRInt32 y , out PRInt32 cx , out PRInt32 cy )
|
| nsIScrollable |
void getScrollbarVisibility ( out PRBool verticalVisible , out PRBool horizontalVisible )
|
| nsIScrollable |
void getScrollRange ( PRInt32 scrollOrientation , out PRInt32 minPos , out PRInt32 maxPos )
|
| nsIBaseWindow |
void getSize ( out PRInt32 cx , out PRInt32 cy )
|
| nsISupportsWeakReference |
nsIWeakReference GetWeakReference ( )
|
| nsIWebNavigation |
void goBack ( )
|
| nsIWebNavigation |
void goForward ( )
|
| nsIWebNavigation |
void gotoIndex ( PRInt32 index )
|
| nsIBaseWindow |
[noscript] void initWindow ( nativeWindow parentNativeWindow , nsIWidget parentWidget , PRInt32 x , PRInt32 y , PRInt32 cx , PRInt32 cy )
|
| nsIWebNavigation |
void loadURI ( PRUnichar* URI , PRUint32 loadFlags , nsIURI referrer , nsIInputStream postData , nsIInputStream headers )
|
| nsIDocShellTreeItem |
PRBool nameEquals ( PRUnichar* name )
|
| nsIWebProgressListener |
void onLocationChange ( nsIWebProgress webProgress , nsIRequest request , nsIURI location )
|
| nsIWebProgressListener |
void onProgressChange ( nsIWebProgress webProgress , nsIRequest request , PRInt32 curSelfProgress , PRInt32 maxSelfProgress , PRInt32 curTotalProgress , PRInt32 maxTotalProgress )
|
| nsIWebProgressListener |
void onSecurityChange ( nsIWebProgress webProgress , nsIRequest request , PRUint32 state )
|
| nsIWebProgressListener |
void onStateChange ( nsIWebProgress webProgress , nsIRequest request , PRUint32 stateFlags , nsresult status )
|
| nsIWebProgressListener |
void onStatusChange ( nsIWebProgress webProgress , nsIRequest request , nsresult status , PRUnichar* message )
|
| nsIWebNavigation |
void reload ( PRUint32 reloadFlags )
|
| nsIDocShellTreeNode |
void removeChild ( nsIDocShellTreeItem child )
|
| nsIWebBrowser |
void removeWebBrowserListener ( nsIWeakReference listener , nsIIDRef IID )
|
| nsIBaseWindow |
void repaint ( PRBool force )
|
| nsIWebBrowserPersist |
void saveChannel ( nsIChannel channel , nsISupports file )
|
| nsIWebBrowserPersist |
void saveDocument ( nsIDOMDocument document , nsISupports file , nsISupports dataPath , char* outputContentType , PRUint32 encodingFlags , PRUint32 wrapColumn )
|
| nsIWebBrowserPersist |
void saveURI ( nsIURI URI , nsISupports cacheKey , nsIURI referrer , nsIInputStream postData , char* extraHeaders , nsISupports file )
|
| nsITextScroll |
void scrollByLines ( PRInt32 numLines )
|
| nsITextScroll |
void scrollByPages ( PRInt32 numPages )
|
| nsIScrollable |
void setCurScrollPos ( PRInt32 scrollOrientation , PRInt32 curPos )
|
| nsIScrollable |
void setCurScrollPosEx ( PRInt32 curHorizontalPos , PRInt32 curVerticalPos )
|
| nsIScrollable |
void setDefaultScrollbarPreferences ( PRInt32 scrollOrientation , PRInt32 scrollbarPref )
|
| nsIBaseWindow |
void setFocus ( )
|
| nsIWebBrowserFocus |
void setFocusAtFirstElement ( )
|
| nsIWebBrowserFocus |
void setFocusAtLastElement ( )
|
| nsIBaseWindow |
void setPosition ( PRInt32 x , PRInt32 y )
|
| nsIBaseWindow |
void setPositionAndSize ( PRInt32 x , PRInt32 y , PRInt32 cx , PRInt32 cy , PRBool fRepaint )
|
| nsIWebBrowserSetup |
void setProperty ( PRUint32 id , PRUint32 value )
|
| nsIScrollable |
void setScrollRange ( PRInt32 scrollOrientation , PRInt32 minPos , PRInt32 maxPos )
|
| nsIScrollable |
void setScrollRangeEx ( PRInt32 minHorizontalPos , PRInt32 maxHorizontalPos , PRInt32 minVerticalPos , PRInt32 maxVerticalPos )
|
| nsIBaseWindow |
void setSize ( PRInt32 cx , PRInt32 cy , PRBool fRepaint )
|
| nsIDocShellTreeItem |
[noscript] void setTreeOwner ( nsIDocShellTreeOwner treeOwner )
|
| nsIWebNavigation |
void stop ( PRUint32 stopFlags )
|
Reference documentation is generated from Mozilla's source.
