nsISupports
Last changed in Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7)Implemented by: ?????????????????????????????????????
. To create an instance, use:
var contentViewer = Components.classes["@mozilla.org/????????????????????????????"] .createInstance(Components.interfaces.nsIContentViewer);
void clearHistoryEntry(); |
void close(in nsISHEntry historyEntry); |
void destroy(); |
[noscript,notxpcom,nostdcall] nsIViewPtr findContainerView(); |
void getBounds(in nsIntRectRef aBounds); Native code only! |
[noscript,notxpcom] nsIDocumentPtr getDocument(); |
void hide(); |
void init(in nsIWidgetPtr aParentWidget, [const] in nsIntRectRef aBounds); Native code only! |
void loadComplete(in unsigned long aStatus); |
void loadStart(in nsISupports aDoc); |
void move(in long aX, in long aY); |
void open(in nsISupports aState, in nsISHEntry aSHEntry); |
void pageHide(in boolean isUnload); |
boolean permitUnload([optional] in boolean aCallerClosesWindow); |
boolean requestWindowClose(); |
void resetCloseWindow(); |
void setBounds([const] in nsIntRectRef aBounds); Native code only! |
void setDocumentInternal(in nsIDocumentPtr aDocument, in boolean aForceReuseInnerWindow); Native code only! |
[noscript,notxpcom,nostdcall] void setNavigationTiming(in nsDOMNavigationTimingPtr aTiming); |
void setPageMode(in boolean aPageMode, in nsIPrintSettings aPrintSettings); |
void show(); |
void stop(); |
void unload(); Obsolete since Gecko 1.8 |
Attribute | Type | Description |
container |
|
|
DOMDocument |
|
|
enableRendering |
boolean |
Obsolete since Gecko 2.0 |
historyEntry |
|
Get the history entry that this viewer will save itself into when destroyed. Can return null . Read only. |
isTabModalPromptAllowed |
boolean |
Read only. |
presContext |
nsPresContextPtr |
Read only. Native code only!
Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of
nsIDocumentViewer . |
presShell |
|
Read only. Native code only!
Note: Prior to Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), this attribute was part of
nsIDocumentViewer . |
previousViewer |
|
The previous content viewer, which has been closed but not destroyed. Native code only! |
sticky |
boolean |
Clears the current history entry. This is used to clear out the saved presentation state.
void clearHistoryEntry();
None.
All users of a content viewer are responsible for calling both close()
and destroy()
, in that order.
close()
should be called when the load of a new page for the next content viewer begins, and destroy()
should be called when the next content viewer replaces this one.
void close( in nsISHEntry historyEntry );
historyEntry
null
, then destroy()
will be called on the document by close()
. If it is non-null
, the document will not be destroyed, and the following actions will happen when destroy()
is called:
Sanitize()
will be called on the viewer's documentcontentViewer
property on the history entry, and release its reference (ownership reversal).Hide()
will be called, and no further destruction will happen.void destroy();
None.
Finds the view to use as the container
view for MakeWindow.
nsIDocumentViewer
.[noscript,notxpcom,nostdcall] nsIViewPtr findContainerView();
None.
The container view, or null
if this content viewer is the root of a view manager hierarchy.
null
), and mParentWidget
is also null
, then this document should not even be displayed.void getBounds( in nsIntRectRef aBounds );
aBounds
Returns the DOM document object (as an nsIDocument
without addrefing.
[noscript,notxpcom] nsIDocumentPtr getDocument();
None.
The DOM document object.
void hide();
None.
Initializes the content viewer.
void init( in nsIWidgetPtr aParentWidget, [const] in nsIntRectRef aBounds );
aParentWidget
aBounds
void loadComplete( in unsigned long aStatus );
aStatus
Missing Exception
void loadStart( in nsISupports aDoc );
aDoc
Missing Exception
void move( in long aX, in long aY );
aX
aY
Attaches the content viewer to its DOM window and docshell.
void open( in nsISupports aState, in nsISHEntry aSHEntry );
aState
aSHEntry
void pageHide( in boolean isUnload );
isUnload
Missing Exception
Determins whether or not the document wants to prevent unloading by firing beforeunload
on the document, and if it does, prompts the user. The result is returned.
boolean permitUnload(
in boolean aCallerClosesWindow Optional
);
aCallerClosesWindow
Optionalclose()
the window. If the method returns true
, all subsequent calls will be ignored.true
if the document will allow unloading; otherwise false
.
boolean requestWindowClose();
None.
Missing Description
Missing Exception
Works in tandem with permitUnload()
, if the caller decides not to close()
the window it indicated it will, it is the caller's responsibility to reset that with this method.
void resetCloseWindow();
None.
Missing Exception
void setBounds( [const] in nsIntRectRef aBounds );
aBounds
nsIDocumentViewer
.void setDocumentInternal( in nsIDocumentPtr aDocument, in boolean aForceReuseInnerWindow );
aDocument
aForceReuseInnerWindow
Set collector for navigation timing data (load
and unload
events).
[noscript,notxpcom,nostdcall] void setNavigationTiming( in nsDOMNavigationTimingPtr aTiming );
aTiming
Missing Description
void setPageMode( in boolean aPageMode, in nsIPrintSettings aPrintSettings );
aPageMode
aPrintSettings
void show();
None.
void stop();
None.
void unload();
None.