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]
pub fn coerce<T: nsIWebBrowserChrome2Coerce>(&self) -> &T
[src]
Cast this nsIWebBrowserChrome2
to one of its base interfaces.
impl nsIWebBrowserChrome2
[src]
pub unsafe fn SetStatusWithContext(
&self,
statusType: uint32_t,
statusText: &nsAString,
statusContext: *const nsISupports
) -> nsresult
[src]
&self,
statusType: uint32_t,
statusText: &nsAString,
statusContext: *const nsISupports
) -> nsresult
/**
* 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>
pub fn coerce<T: nsIWebBrowserChromeCoerce>(&self) -> &T
[src]
Cast this nsIWebBrowserChrome
to one of its base interfaces.
pub const STATUS_SCRIPT: i64
pub const STATUS_LINK: i64
pub const CHROME_DEFAULT: i64
pub const CHROME_WINDOW_BORDERS: i64
pub const CHROME_WINDOW_CLOSE: i64
pub const CHROME_WINDOW_RESIZE: i64
pub const CHROME_MENUBAR: i64
pub const CHROME_TOOLBAR: i64
pub const CHROME_LOCATIONBAR: i64
pub const CHROME_STATUSBAR: i64
pub const CHROME_PERSONAL_TOOLBAR: i64
pub const CHROME_SCROLLBARS: i64
pub const CHROME_TITLEBAR: i64
pub const CHROME_EXTRA: i64
pub const CHROME_WITH_SIZE: i64
pub const CHROME_WITH_POSITION: i64
pub const CHROME_WINDOW_MIN: i64
pub const CHROME_WINDOW_POPUP: i64
pub const CHROME_PRIVATE_WINDOW: i64
pub const CHROME_NON_PRIVATE_WINDOW: i64
pub const CHROME_PRIVATE_LIFETIME: i64
pub const CHROME_REMOTE_WINDOW: i64
pub const CHROME_SUPPRESS_ANIMATION: i64
pub const CHROME_WINDOW_RAISED: i64
pub const CHROME_WINDOW_LOWERED: i64
pub const CHROME_CENTER_SCREEN: i64
pub const CHROME_DEPENDENT: i64
pub const CHROME_MODAL: i64
pub const CHROME_OPENAS_DIALOG: i64
pub const CHROME_OPENAS_CHROME: i64
pub const CHROME_ALL: i64
pub unsafe fn SetStatus(
&self,
statusType: uint32_t,
status: *const int16_t
) -> nsresult
[src]
&self,
statusType: uint32_t,
status: *const int16_t
) -> nsresult
/**
* 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);
pub unsafe fn GetWebBrowser(
&self,
aWebBrowser: *mut *const nsIWebBrowser
) -> nsresult
[src]
&self,
aWebBrowser: *mut *const nsIWebBrowser
) -> nsresult
/**
* 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;
pub unsafe fn SetWebBrowser(
&self,
aWebBrowser: *const nsIWebBrowser
) -> nsresult
[src]
&self,
aWebBrowser: *const nsIWebBrowser
) -> nsresult
/**
* 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;
pub unsafe fn GetChromeFlags(&self, aChromeFlags: *mut uint32_t) -> nsresult
[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;
pub unsafe fn SetChromeFlags(&self, aChromeFlags: uint32_t) -> nsresult
[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;
pub unsafe fn DestroyBrowserWindow(&self) -> nsresult
[src]
/**
* Asks the implementer to destroy the window associated with this
* WebBrowser object.
*/
void destroyBrowserWindow ();
pub unsafe fn SizeBrowserTo(&self, aCX: int32_t, aCY: int32_t) -> nsresult
[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);
pub unsafe fn ShowAsModal(&self) -> nsresult
[src]
/**
* Shows the window as a modal window.
* @return (the function error code) the status value specified by
* in exitModalEventLoop.
*/
void showAsModal ();
pub unsafe fn IsWindowModal(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Is the window modal (that is, currently executing a modal loop)?
* @return true if it's a modal window
*/
boolean isWindowModal ();
pub unsafe fn ExitModalEventLoop(&self, aStatus: nsresult) -> nsresult
[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]
const IID: nsIID
IID: nsIID = nsID(629516209, 31559, 17348, [191, 23, 198, 191, 132, 224, 155, 123])
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 nsIWebBrowserChrome2
[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 nsIWebBrowserChrome2
[src]
type Target = nsIWebBrowserChrome
The resulting type after dereferencing.
fn deref(&self) -> &nsIWebBrowserChrome
[src]
Dereferences the value.