Struct xpcom::interfaces::nsIWebBrowserChrome [] [src]

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

interface nsIWebBrowserChrome : nsISupports

/**
 * nsIWebBrowserChrome corresponds to the top-level, outermost window
 * containing an embedded Gecko web browser.
 */

Methods

impl nsIWebBrowserChrome
[src]

[src]

Cast this nsIWebBrowserChrome to one of its base interfaces.

impl nsIWebBrowserChrome
[src]

STATUS_SCRIPT: i64 = 1
STATUS_LINK: i64 = 3

CHROME_DEFAULT: i64 = 1
/**
     * Definitions for the chrome flags
     */

CHROME_WINDOW_BORDERS: i64 = 2

CHROME_WINDOW_CLOSE: i64 = 4

CHROME_WINDOW_RESIZE: i64 = 8

CHROME_MENUBAR: i64 = 16

CHROME_TOOLBAR: i64 = 32

CHROME_LOCATIONBAR: i64 = 64

CHROME_STATUSBAR: i64 = 128

CHROME_PERSONAL_TOOLBAR: i64 = 256

CHROME_SCROLLBARS: i64 = 512

CHROME_TITLEBAR: i64 = 1024

CHROME_EXTRA: i64 = 2048

CHROME_WITH_SIZE: i64 = 4096

CHROME_WITH_POSITION: i64 = 8192

CHROME_WINDOW_MIN: i64 = 16384

CHROME_WINDOW_POPUP: i64 = 32768

CHROME_PRIVATE_WINDOW: i64 = 65536

CHROME_NON_PRIVATE_WINDOW: i64 = 131072

CHROME_PRIVATE_LIFETIME: i64 = 262144

CHROME_REMOTE_WINDOW: i64 = 1048576

CHROME_SUPPRESS_ANIMATION: i64 = 16777216

CHROME_WINDOW_RAISED: i64 = 33554432

CHROME_WINDOW_LOWERED: i64 = 67108864

CHROME_CENTER_SCREEN: i64 = 134217728

CHROME_DEPENDENT: i64 = 268435456

CHROME_MODAL: i64 = 536870912

CHROME_OPENAS_DIALOG: i64 = 1073741824

CHROME_OPENAS_CHROME: i64 = 2147483648

CHROME_ALL: i64 = 4094

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

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIWebBrowserChrome
[src]

IID: nsIID = nsID(3905164484, 56376, 19363, [171, 78, 236, 76, 187, 226, 41, 7])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIWebBrowserChrome
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.