Struct xpcom::interfaces::nsIBrowser  
                   
                       [−]
                   
               [src]
#[repr(C)]pub struct nsIBrowser { /* fields omitted */ }
interface nsIBrowser : nsISupports
Methods
impl nsIBrowser[src]
pub fn coerce<T: nsIBrowserCoerce>(&self) -> &T[src]
Cast this nsIBrowser to one of its base interfaces.
impl nsIBrowser[src]
pub const SWAP_DEFAULT: i64
SWAP_DEFAULT: i64 = 0
/**
   * Flags for controlling the behavior of swapBrowsers
   */
/**
   * The default options. This is used for swapping browsers between windows
   */
pub const SWAP_KEEP_PERMANENT_KEY: i64
SWAP_KEEP_PERMANENT_KEY: i64 = 1
/**
   * If this bit is set, swapping the browsers will not swap the permanentKey of
   * the browsers. This is used when performing cross process loads by swapping
   * browsers.
   */
pub unsafe fn GetSameProcessAsFrameLoader(
    &self, 
    aSameProcessAsFrameLoader: *mut *const nsIFrameLoader
) -> nsresult[src]
&self,
aSameProcessAsFrameLoader: *mut *const nsIFrameLoader
) -> nsresult
/**
   * Gets an optional frame loader that is "related" to this browser.
   * If this exists, then we should attempt to use the same content parent as
   * this frame loader for any new tab parents.  For example, view source
   * browsers set this to the frame loader for the original content to ensure
   * they are loaded in the same process as the content.
   */
readonly attribute nsIFrameLoader sameProcessAsFrameLoader;
pub unsafe fn DropLinks(
    &self, 
    linksCount: uint32_t, 
    links: *mut *const int16_t, 
    aTriggeringPrincipal: *const nsIPrincipal
) -> nsresult[src]
&self,
linksCount: uint32_t,
links: *mut *const int16_t,
aTriggeringPrincipal: *const nsIPrincipal
) -> nsresult
void dropLinks (in unsigned long linksCount, [array, size_is (linksCount)] in wstring links, in nsIPrincipal aTriggeringPrincipal);
pub unsafe fn SwapBrowsers(
    &self, 
    aOtherBrowser: *const nsIBrowser, 
    aFlags: uint32_t
) -> nsresult[src]
&self,
aOtherBrowser: *const nsIBrowser,
aFlags: uint32_t
) -> nsresult
/**
   * Swapping of frameloaders are usually initiated from a frameloader owner
   * or other components operating on frameloader owners. This is done by calling
   * swapFrameLoaders at MozFrameLoaderOwner webidl interface.
   *
   * This function aimed to provide the other way around -
   * if the swapping is initiated from frameloader itself or other platform level
   * components, it uses this interface to delegate the swapping request to
   * frameloader owners and ask them to re-initiate frameloader swapping, so that
   * frameloader owners such as <xul:browser> can setup their properties and /
   * or listeners properly on swapping.
   */
void swapBrowsers (in nsIBrowser aOtherBrowser, in unsigned long aFlags);
pub unsafe fn CloseBrowser(&self) -> nsresult[src]
/**
   * Close the browser (usually means to remove a tab).
   */
void closeBrowser ();
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 nsIBrowser[src]
const IID: nsIID
IID: nsIID = nsID(350593227, 57891, 16898, [149, 232, 254, 83, 39, 81, 147, 234])
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 nsIBrowser[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 nsIBrowser[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports[src]
Dereferences the value.