Struct xpcom::interfaces::nsIWebBrowserChrome2 [] [src]

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

interface nsIWebBrowserChrome2 : nsIWebBrowserChrome

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

Methods

impl nsIWebBrowserChrome2
[src]

[src]

Cast this nsIWebBrowserChrome2 to one of its base interfaces.

impl nsIWebBrowserChrome2
[src]

[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);

Methods from Deref<Target = nsIWebBrowserChrome>

[src]

Cast this nsIWebBrowserChrome to one of its base interfaces.

[src]

/**
     * Called when the status text in the chrome needs to be updated.
     * @param statusType indicates what is setting the text
     * @param status status string. null is an acceptable value meaning
     *               no status.
     */

void setStatus (in unsigned long statusType, in wstring status);

[src]

/**
     * The currently loaded WebBrowser.  The browser chrome may be
     * told to set the WebBrowser object to a new object by setting this
     * attribute.  In this case the implementer is responsible for taking the
     * new WebBrowser object and doing any necessary initialization or setup
     * as if it had created the WebBrowser itself.  This includes positioning
     * setting up listeners etc.
     */

attribute nsIWebBrowser webBrowser;

[src]

/**
     * The currently loaded WebBrowser.  The browser chrome may be
     * told to set the WebBrowser object to a new object by setting this
     * attribute.  In this case the implementer is responsible for taking the
     * new WebBrowser object and doing any necessary initialization or setup
     * as if it had created the WebBrowser itself.  This includes positioning
     * setting up listeners etc.
     */

attribute nsIWebBrowser webBrowser;

[src]

/**
     * The chrome flags for this browser chrome. The implementation should
     * reflect the value of this attribute by hiding or showing its chrome
     * appropriately.
     */

attribute unsigned long chromeFlags;

[src]

/**
     * The chrome flags for this browser chrome. The implementation should
     * reflect the value of this attribute by hiding or showing its chrome
     * appropriately.
     */

attribute unsigned long chromeFlags;

[src]

/**
     * Asks the implementer to destroy the window associated with this
     * WebBrowser object.
     */

void destroyBrowserWindow ();

[src]

/**
     * Tells the chrome to size itself such that the browser will be the
     * specified size.
     * @param aCX new width of the browser
     * @param aCY new height of the browser
     */

void sizeBrowserTo (in long aCX, in long aCY);

[src]

/**
     * Shows the window as a modal window.
     * @return (the function error code) the status value specified by
     *         in exitModalEventLoop.
     */

void showAsModal ();

[src]

/**
     * Is the window modal (that is, currently executing a modal loop)?
     * @return true if it's a modal window
     */

boolean isWindowModal ();

[src]

/**
     * Exit a modal event loop if we're in one. The implementation
     * should also exit out of the loop if the window is destroyed.
     * @param aStatus - the result code to return from showAsModal
     */

void exitModalEventLoop (in nsresult aStatus);

Trait Implementations

impl XpCom for nsIWebBrowserChrome2
[src]

IID: nsIID = nsID(629516209, 31559, 17348, [191, 23, 198, 191, 132, 224, 155, 123])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebBrowserChrome2
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.