Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIContentViewer Interface Reference

import "nsIContentViewer.idl";

Inheritance diagram for nsIContentViewer:
Inheritance graph
[legend]
Collaboration diagram for nsIContentViewer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void init (in nsIWidgetPtr aParentWidget, in nsIDeviceContextPtr aDeviceContext,[const ] in nsRectRef aBounds)
void loadStart (in nsISupports aDoc)
void loadComplete (in unsigned long aStatus)
boolean permitUnload ()
void pageHide (in boolean isUnload)
void close (in nsISHEntry historyEntry)
 All users of a content viewer are responsible for calling both close() and destroy(), in that order.
void destroy ()
void stop ()
void getBounds (in nsRectRef aBounds)
void setBounds ([const ] in nsRectRef aBounds)
void move (in long aX, in long aY)
void show ()
void hide ()
boolean requestWindowClose ()
void open (in nsISupports aState)
 Attach the content viewer to its DOM window and docshell.
void clearHistoryEntry ()
 Clears the current history entry.

Public Attributes

attribute nsISupports container
attribute nsIDOMDocument DOMDocument
attribute nsIContentViewer previousViewer
 The previous content viewer, which has been |close|d but not |destroy|ed.
attribute boolean enableRendering
attribute boolean sticky

Detailed Description

Definition at line 18 of file nsIContentViewer.idl.


Member Function Documentation

Clears the current history entry.

This is used if we need to clear out the saved presentation state.

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.

|historyEntry| sets the session history entry for the content viewer. If this is 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 document
  • The content viewer will set the contentViewer property on the history entry, and release its reference (ownership reversal).
  • hide() will be called, and no further destruction will happen.

(*) unless the document is currently being printed, in which case it will never be saved in session history.

Here is the caller graph for this function:

void nsIContentViewer::init ( in nsIWidgetPtr  aParentWidget,
in nsIDeviceContextPtr  aDeviceContext,
[const ] in nsRectRef  aBounds 
)
void nsIContentViewer::loadComplete ( in unsigned long  aStatus)
void nsIContentViewer::loadStart ( in nsISupports  aDoc)
void nsIContentViewer::open ( in nsISupports  aState)

Attach the content viewer to its DOM window and docshell.

Parameters:
aStateA state object that might be useful in attaching the DOM window.

Member Data Documentation

Definition at line 25 of file nsIContentViewer.idl.

Definition at line 58 of file nsIContentViewer.idl.

Definition at line 74 of file nsIContentViewer.idl.

The previous content viewer, which has been |close|d but not |destroy|ed.

Definition at line 67 of file nsIContentViewer.idl.

Definition at line 76 of file nsIContentViewer.idl.


The documentation for this interface was generated from the following file: