Struct xpcom::interfaces::nsIXULBrowserWindow
[−]
[src]
#[repr(C)]pub struct nsIXULBrowserWindow { /* fields omitted */ }
interface nsIXULBrowserWindow : nsISupports
/**
* The nsIXULBrowserWindow supplies the methods that may be called from the
* internals of the browser area to tell the containing xul window to update
* its ui.
*/
Methods
impl nsIXULBrowserWindow
[src]
pub fn coerce<T: nsIXULBrowserWindowCoerce>(&self) -> &T
[src]
Cast this nsIXULBrowserWindow
to one of its base interfaces.
impl nsIXULBrowserWindow
[src]
pub unsafe fn SetJSStatus(&self, status: &nsAString) -> nsresult
[src]
/**
* Sets the status according to JS' version of status.
*/
void setJSStatus (in AString status);
pub unsafe fn SetOverLink(
&self,
link: &nsAString,
element: *const nsIDOMElement
) -> nsresult
[src]
&self,
link: &nsAString,
element: *const nsIDOMElement
) -> nsresult
/**
* Tells the object implementing this function what link we are currently
* over.
*/
void setOverLink (in AString link, in nsIDOMElement element);
pub unsafe fn OnBeforeLinkTraversal(
&self,
originalTarget: &nsAString,
linkURI: *const nsIURI,
linkNode: *const nsIDOMNode,
isAppTab: bool,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
originalTarget: &nsAString,
linkURI: *const nsIURI,
linkNode: *const nsIDOMNode,
isAppTab: bool,
_retval: &mut nsAString
) -> nsresult
/**
* Determines the appropriate target for a link.
*/
AString onBeforeLinkTraversal (in AString originalTarget, in nsIURI linkURI, in nsIDOMNode linkNode, in boolean isAppTab);
pub unsafe fn ForceInitialBrowserRemote(
&self,
aRemoteType: &nsAString
) -> nsresult
[src]
&self,
aRemoteType: &nsAString
) -> nsresult
/**
* Find the initial browser of the window and set its remote attributes.
* This can be used to ensure that there is a browser in a new window of the
* correct type when it first spawns.
*/
void forceInitialBrowserRemote (in AString aRemoteType);
pub unsafe fn ForceInitialBrowserNonRemote(
&self,
openerWindow: *const mozIDOMWindowProxy
) -> nsresult
[src]
&self,
openerWindow: *const mozIDOMWindowProxy
) -> nsresult
void forceInitialBrowserNonRemote (in mozIDOMWindowProxy openerWindow);
pub unsafe fn ShouldLoadURI(
&self,
aDocShell: *const nsIDocShell,
aURI: *const nsIURI,
aReferrer: *const nsIURI,
aHasPostData: bool,
aTriggeringPrincipal: *const nsIPrincipal,
_retval: *mut bool
) -> nsresult
[src]
&self,
aDocShell: *const nsIDocShell,
aURI: *const nsIURI,
aReferrer: *const nsIURI,
aHasPostData: bool,
aTriggeringPrincipal: *const nsIPrincipal,
_retval: *mut bool
) -> nsresult
/**
* Determines whether a load should continue.
*
* @param aDocShell
* The docshell performing the load.
* @param aURI
* The URI being loaded.
* @param aReferrer
* The referrer of the load.
* @param aHasPostData
* True if the load which is being asked about has associated post data
* which would be discarded if the load was redirected across process
* boundaries.
* @param aTriggeringPrincipal
* The principal that initiated the load of aURI.
*/
bool shouldLoadURI (in nsIDocShell aDocShell, in nsIURI aURI, in nsIURI aReferrer, in boolean aHasPostData, in nsIPrincipal aTriggeringPrincipal);
pub unsafe fn ShowTooltip(
&self,
x: int32_t,
y: int32_t,
tooltip: &nsAString,
direction: &nsAString,
browser: *const nsIFrameLoaderOwner
) -> nsresult
[src]
&self,
x: int32_t,
y: int32_t,
tooltip: &nsAString,
direction: &nsAString,
browser: *const nsIFrameLoaderOwner
) -> nsresult
/**
* Show/hide a tooltip (when the user mouses over a link, say).
*/
void showTooltip (in long x, in long y, in AString tooltip, in AString direction, in nsIFrameLoaderOwner browser);
pub unsafe fn HideTooltip(&self) -> nsresult
[src]
void hideTooltip ();
pub unsafe fn GetTabCount(&self, _retval: *mut uint32_t) -> nsresult
[src]
/**
* Return the number of tabs in this window.
*/
uint32_t getTabCount ();
[src]
/**
* Navigate the browser to the given history index after restoring the full history
* from SessionStore. If the browser is currently in GroupedSHistory mode, it will
* be reverted to a non-grouped history mode. If a process change is required to
* perform the load, this will also occur.
*/
void navigateAndRestoreByIndex (in nsIBrowser aBrowser, in long aIndex);
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 nsIXULBrowserWindow
[src]
const IID: nsIID
IID: nsIID = nsID(2825346985, 51380, 17232, [152, 3, 195, 143, 52, 74, 158, 56])
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 nsIXULBrowserWindow
[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 nsIXULBrowserWindow
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.