Struct xpcom::interfaces::nsIPartialSHistory
[−]
[src]
#[repr(C)]pub struct nsIPartialSHistory { /* fields omitted */ }
interface nsIPartialSHistory : nsISupports
/**
* nsIPartialSHistory represents a part of nsIGroupedSHistory. It associates to
* a "partial" nsISHistory in either local or remote process.
*/
Methods
impl nsIPartialSHistory
[src]
pub fn coerce<T: nsIPartialSHistoryCoerce>(&self) -> &T
[src]
Cast this nsIPartialSHistory
to one of its base interfaces.
impl nsIPartialSHistory
[src]
pub const STATE_INACTIVE: i64
STATE_INACTIVE: i64 = 0
pub const STATE_ACTIVE: i64
STATE_ACTIVE: i64 = 1
pub const STATE_PRERENDER: i64
STATE_PRERENDER: i64 = 2
pub unsafe fn GetCount(&self) -> uint32_t
[src]
[infallible] readonly attribute unsigned long count;
pub unsafe fn GetGlobalIndex(&self) -> int32_t
[src]
[infallible] readonly attribute long globalIndex;
pub unsafe fn GetGlobalIndexOffset(&self) -> uint32_t
[src]
[infallible] readonly attribute unsigned long globalIndexOffset;
pub unsafe fn GetOwnerFrameLoader(
&self,
aOwnerFrameLoader: *mut *const nsIFrameLoader
) -> nsresult
[src]
&self,
aOwnerFrameLoader: *mut *const nsIFrameLoader
) -> nsresult
readonly attribute nsIFrameLoader ownerFrameLoader;
pub unsafe fn GetGroupedSHistory(
&self,
aGroupedSHistory: *mut *const nsIGroupedSHistory
) -> nsresult
[src]
&self,
aGroupedSHistory: *mut *const nsIGroupedSHistory
) -> nsresult
readonly attribute nsIGroupedSHistory groupedSHistory;
pub unsafe fn GetActiveState(&self) -> int32_t
[src]
[infallible] attribute long activeState;
pub unsafe fn SetActiveState(&self, aActiveState: int32_t) -> nsresult
[src]
[infallible] attribute long activeState;
pub unsafe fn OnAttachGroupedSHistory(
&self,
aGroup: *const nsIGroupedSHistory,
aOffset: uint32_t
) -> nsresult
[src]
&self,
aGroup: *const nsIGroupedSHistory,
aOffset: uint32_t
) -> nsresult
/**
* Notify that it's been added to a grouped session history. It also implies
* it's becoming the active partial history of the group.
*
* @param aGroup The GroupedSHistory which this partialSHistory
* is joining.
*
* @param aOffset The number of entries in preceding partial
* session histories.
*/
void onAttachGroupedSHistory (in nsIGroupedSHistory aGroup, in unsigned long aOffset);
pub unsafe fn HandleSHistoryUpdate(
&self,
aCount: uint32_t,
aLocalIndex: uint32_t,
aTruncate: bool
) -> nsresult
[src]
&self,
aCount: uint32_t,
aLocalIndex: uint32_t,
aTruncate: bool
) -> nsresult
/**
* This method is used by the TabParent to notify the PartialSHistory
* that the state of its corresponding nsISHistory in the content process
* has been updated. It is unused in the in-process case.
*
* @param aCount The number of entries in the associated session history.
* @param aLocalIndex The local index of the currently active entry in the
* associated session history
*/
void handleSHistoryUpdate (in unsigned long aCount, in unsigned long aLocalIndex, in boolean aTruncate);
pub unsafe fn OnActive(
&self,
aGlobalLength: uint32_t,
aTargetLocalIndex: uint32_t
) -> nsresult
[src]
&self,
aGlobalLength: uint32_t,
aTargetLocalIndex: uint32_t
) -> nsresult
/**
* Notify that the partial session history has been swapped in as the active
* session history. Only an active session history can possibly add / remove /
* replace its history entries.
*
* @param aGlobalLength The up-to-date global length.
* @param aTargetLocalIndex The local index to navigate to.
*/
void onActive (in unsigned long aGlobalLength, in unsigned long aTargetLocalIndex);
pub unsafe fn OnDeactive(&self) -> nsresult
[src]
/**
* Notify that the partial session history has been swapped out and is no
* longer active.
*/
void onDeactive ();
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 nsIPartialSHistory
[src]
const IID: nsIID
IID: nsIID = nsID(1557618216, 33676, 18954, [151, 46, 96, 5, 247, 54, 239, 122])
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 nsIPartialSHistory
[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 nsIPartialSHistory
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.