Struct xpcom::interfaces::nsIDocShellTreeOwner
[−]
[src]
#[repr(C)]pub struct nsIDocShellTreeOwner { /* fields omitted */ }
interface nsIDocShellTreeOwner : nsISupports
Methods
impl nsIDocShellTreeOwner
[src]
pub fn coerce<T: nsIDocShellTreeOwnerCoerce>(&self) -> &T
[src]
Cast this nsIDocShellTreeOwner
to one of its base interfaces.
impl nsIDocShellTreeOwner
[src]
pub unsafe fn ContentShellAdded(
&self,
aContentShell: *const nsIDocShellTreeItem,
aPrimary: bool
) -> nsresult
[src]
&self,
aContentShell: *const nsIDocShellTreeItem,
aPrimary: bool
) -> nsresult
/**
* 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).
*
* @param aContentShell the shell being added.
* @param aPrimary whether the shell is primary.
*/
void contentShellAdded (in nsIDocShellTreeItem aContentShell, in boolean aPrimary);
pub unsafe fn ContentShellRemoved(
&self,
aContentShell: *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aContentShell: *const nsIDocShellTreeItem
) -> nsresult
/**
* 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 aContentShell was never added,
* contentShellRemoved should just do nothing.
*
* @param aContentShell the shell being removed.
*/
void contentShellRemoved (in nsIDocShellTreeItem aContentShell);
pub unsafe fn GetPrimaryContentShell(
&self,
aPrimaryContentShell: *mut *const nsIDocShellTreeItem
) -> nsresult
[src]
&self,
aPrimaryContentShell: *mut *const nsIDocShellTreeItem
) -> nsresult
readonly attribute nsIDocShellTreeItem primaryContentShell;
pub unsafe fn TabParentAdded(
&self,
aTab: *const nsITabParent,
aPrimary: bool
) -> nsresult
[src]
&self,
aTab: *const nsITabParent,
aPrimary: bool
) -> nsresult
void tabParentAdded (in nsITabParent aTab, in boolean aPrimary);
pub unsafe fn TabParentRemoved(&self, aTab: *const nsITabParent) -> nsresult
[src]
void tabParentRemoved (in nsITabParent aTab);
pub unsafe fn GetPrimaryTabParent(
&self,
aPrimaryTabParent: *mut *const nsITabParent
) -> nsresult
[src]
&self,
aPrimaryTabParent: *mut *const nsITabParent
) -> nsresult
readonly attribute nsITabParent primaryTabParent;
pub unsafe fn SizeShellTo(
&self,
shell: *const nsIDocShellTreeItem,
cx: int32_t,
cy: int32_t
) -> nsresult
[src]
&self,
shell: *const nsIDocShellTreeItem,
cx: int32_t,
cy: int32_t
) -> nsresult
void sizeShellTo (in nsIDocShellTreeItem shell, in long cx, in long cy);
pub unsafe fn GetPrimaryContentSize(
&self,
width: *mut int32_t,
height: *mut int32_t
) -> nsresult
[src]
&self,
width: *mut int32_t,
height: *mut int32_t
) -> nsresult
void getPrimaryContentSize (out long width, out long height);
pub unsafe fn SetPrimaryContentSize(
&self,
width: int32_t,
height: int32_t
) -> nsresult
[src]
&self,
width: int32_t,
height: int32_t
) -> nsresult
void setPrimaryContentSize (in long width, in long height);
pub unsafe fn GetRootShellSize(
&self,
width: *mut int32_t,
height: *mut int32_t
) -> nsresult
[src]
&self,
width: *mut int32_t,
height: *mut int32_t
) -> nsresult
void getRootShellSize (out long width, out long height);
pub unsafe fn SetRootShellSize(
&self,
width: int32_t,
height: int32_t
) -> nsresult
[src]
&self,
width: int32_t,
height: int32_t
) -> nsresult
void setRootShellSize (in long width, in long height);
pub unsafe fn SetPersistence(
&self,
aPersistPosition: bool,
aPersistSize: bool,
aPersistSizeMode: bool
) -> nsresult
[src]
&self,
aPersistPosition: bool,
aPersistSize: bool,
aPersistSizeMode: bool
) -> nsresult
void setPersistence (in boolean aPersistPosition, in boolean aPersistSize, in boolean aPersistSizeMode);
pub unsafe fn GetPersistence(
&self,
aPersistPosition: *mut bool,
aPersistSize: *mut bool,
aPersistSizeMode: *mut bool
) -> nsresult
[src]
&self,
aPersistPosition: *mut bool,
aPersistSize: *mut bool,
aPersistSizeMode: *mut bool
) -> nsresult
void getPersistence (out boolean aPersistPosition, out boolean aPersistSize, out boolean aPersistSizeMode);
pub unsafe fn GetTabCount(&self, aTabCount: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long tabCount;
pub unsafe fn GetHasPrimaryContent(
&self,
aHasPrimaryContent: *mut bool
) -> nsresult
[src]
&self,
aHasPrimaryContent: *mut bool
) -> nsresult
readonly attribute bool hasPrimaryContent;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIDocShellTreeOwner
[src]
const IID: nsIID
IID: nsIID = nsID(238929073, 19690, 18999, [175, 113, 121, 240, 175, 208, 117, 116])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIDocShellTreeOwner
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDocShellTreeOwner
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.