Struct xpcom::interfaces::nsIWebBrowserChrome3 [] [src]

#[repr(C)]
pub struct nsIWebBrowserChrome3 { /* fields omitted */ }

interface nsIWebBrowserChrome3 : nsIWebBrowserChrome2

/**
 * nsIWebBrowserChrome3 is an extension to nsIWebBrowserChrome2.
 */

Methods

impl nsIWebBrowserChrome3
[src]

[src]

Cast this nsIWebBrowserChrome3 to one of its base interfaces.

impl nsIWebBrowserChrome3
[src]

[src]

/**
   * Determines the appropriate target for a link.
   *
   * @param originalTarget
   *        The original link target.
   * @param linkURI
   *        Link destination URI.
   * @param aDOMNode
   *        Link DOM node.
   * @param isAppTab
   *        Whether or not the link is in an app tab.
   * @returns A new link target, if appropriate.
   *          Otherwise returns originalTarget.
   */

AString onBeforeLinkTraversal (in AString originalTarget, in nsIURI linkURI, in nsIDOMNode linkNode, in boolean isAppTab);

[src]

/**
   * 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);

[src]

bool shouldLoadURIInThisProcess (in nsIURI aURI);

[src]

/**
   * Attempts to load the currently loaded page into a fresh process to increase
   * available memory.
   *
   * @param aDocShell
   *        The docshell performing the load.
   */

bool reloadInFreshProcess (in nsIDocShell aDocShell, in nsIURI aURI, in nsIURI aReferrer, in nsIPrincipal aTriggeringPrincipal, in uint32_t aLoadFlags);

[src]

/**
   * Tell the browser to start prerendering the given document. This prerendering
   * _must_ be for the toplevel document.
   *
   * @param aHref The URI to begin prerendering
   * @param aReferrer The URI of the document requesting the prerender.
   * @param aTriggeringPrincipal The Principal that initiated to load aHref
   */

void startPrerenderingDocument (in nsIURI aHref, in nsIURI aReferrer, in nsIPrincipal aTriggeringPrincipal);

[src]

/**
   * Check if there's a prerendered document which matches given URI /
   * referrer, and try to switch to the prerendered document immediately if
   * there is.
   *
   * @param aHref
   *        The URI which is being loaded.
   * @param aReferrer
   *        The referrer for the current load.
   * @param aSuccess
   *        (Optional) a runnable which will be run if the swap is successful.
   * @param aFailure
   *        (Optional) a runnable which will be run if the swap is not
   *        successful. Note it's not invoked if the function returns false.
   *
   * @return True if there is a matched prerendered document to swap with,
   *         false otherwise.
   */

bool shouldSwitchToPrerenderedDocument (in nsIURI aHref, in nsIURI aReferrer, in nsIRunnable aSuccess, in nsIRunnable aFailure);

Methods from Deref<Target = nsIWebBrowserChrome2>

[src]

Cast this nsIWebBrowserChrome2 to one of its base interfaces.

[src]

/**
   * Called when the status text in the chrome needs to be updated.  This
   * method may be called instead of nsIWebBrowserChrome::SetStatus.  An
   * implementor of this method, should still implement SetStatus.
   *
   * @param statusType
   *        Indicates what is setting the text.
   * @param status
   *        Status string.  Null is an acceptable value meaning no status.
   * @param contextNode
   *        An object that provides context pertaining to the status type.
   *        If statusType is STATUS_LINK, then statusContext may be a DOM
   *        node corresponding to the source of the link.  This value can
   *        be null if there is no context.
   */

void setStatusWithContext (in unsigned long statusType, in AString statusText, in nsISupports statusContext);

Trait Implementations

impl XpCom for nsIWebBrowserChrome3
[src]

IID: nsIID = nsID(1412130341, 13737, 17002, [130, 87, 193, 42, 52, 83, 131, 176])

[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 nsIWebBrowserChrome3
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebBrowserChrome3
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.