WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDocShellTreeOwner

IID:bc0eb30e-656e-491e-a7ae-7f460b660c8d
Inherits From:nsISupports

Properties

readonly nsIDocShellTreeItem primaryContentShell


Methods

void contentShellAdded ( nsIDocShellTreeItem contentShell , PRBool primary , PRBool targetable , AString ID ) void contentShellRemoved ( nsIDocShellTreeItem contentShell ) nsIDocShellTreeItem findItemWithName ( PRUnichar* name , nsIDocShellTreeItem requestor , nsIDocShellTreeItem originalRequestor ) void getPersistence ( out PRBool persistPosition , out PRBool persistSize , out PRBool persistSizeMode ) void setPersistence ( PRBool persistPosition , PRBool persistSize , PRBool persistSizeMode ) void sizeShellTo ( nsIDocShellTreeItem shell , PRInt32 cx , PRInt32 cy )

void contentShellAdded ( nsIDocShellTreeItem contentShell , PRBool primary , PRBool targetable , AString ID )

Called when a content shell is added to the docshell tree. This is _only_ called for "root" content shells (that is, ones whose parent is a chrome shell).

Arguments:
contentShell: the shell being added.
primary: whether the shell is primary.
targetable: whether the shell can be a target for named window targeting.
ID: the "id" of the shell. What this actually means is undefined. Don't rely on this for anything.

void contentShellRemoved ( nsIDocShellTreeItem contentShell )

Called when a content shell is removed from the docshell tree. This is _only_ called for "root" content shells (that is, ones whose parent is a chrome shell). Note that if contentShell was never added, contentShellRemoved should just do nothing.

Arguments:
contentShell: the shell being removed.

nsIDocShellTreeItem findItemWithName ( PRUnichar* name , nsIDocShellTreeItem requestor , nsIDocShellTreeItem originalRequestor )

Arguments:
name
requestor
originalRequestor

void getPersistence ( out PRBool persistPosition , out PRBool persistSize , out PRBool persistSizeMode )

Arguments:
persistPosition
persistSize
persistSizeMode

void setPersistence ( PRBool persistPosition , PRBool persistSize , PRBool persistSizeMode )

Arguments:
persistPosition
persistSize
persistSizeMode

void sizeShellTo ( nsIDocShellTreeItem shell , PRInt32 cx , PRInt32 cy )

Arguments:
shell
cx
cy

References

This interface is the type of the following properties:

nsIDocShellTreeItem.treeOwner

This interface is passed as an argument to the following methods:

nsIDocShellTreeItem.setTreeOwner

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com