Struct xpcom::interfaces::nsIMozBrowserFrame
[−]
[src]
#[repr(C)]pub struct nsIMozBrowserFrame { /* fields omitted */ }
interface nsIMozBrowserFrame : nsIDOMMozBrowserFrame
Methods
impl nsIMozBrowserFrame
[src]
pub fn coerce<T: nsIMozBrowserFrameCoerce>(&self) -> &T
[src]
Cast this nsIMozBrowserFrame
to one of its base interfaces.
impl nsIMozBrowserFrame
[src]
pub unsafe fn GetReallyIsBrowser(&self) -> bool
[src]
/**
* Gets whether this frame really is a browser frame.
*
* In order to really be a browser frame, this frame's
* nsIDOMMozBrowserFrame::mozbrowser attribute must be true, and the frame
* may have to pass various security checks.
*/
[infallible] readonly attribute boolean reallyIsBrowser;
pub unsafe fn GetIsolated(&self) -> bool
[src]
/**
* Gets whether this frame is an isolated frame.
*
* By default, browser frames are isolated, meaning they have a principal
* where OriginAttributes.mIsInIsolatedMozBrowser == true. This isolates
* storage and other origin related items from non-browser apps, xul:browsers,
* etc.
*
* Isolation can be disabled by setting the frame's isolated attribute to
* false. Disabling isolation is only allowed if the containing document has
* browser permission (or equivalent access).
*/
[infallible] readonly attribute boolean isolated;
pub unsafe fn DisallowCreateFrameLoader(&self) -> nsresult
[src]
/**
* Normally, a frame tries to create its frame loader when its src is
* modified, or its contentWindow is accessed.
*
* disallowCreateFrameLoader prevents the frame element from creating its
* frame loader (in the same way that not being inside a document prevents the
* creation of a frame loader). allowCreateFrameLoader lifts this restriction.
*
* These methods are not re-entrant -- it is an error to call
* disallowCreateFrameLoader twice without first calling allowFrameLoader.
*
* It's also an error to call either method if we already have a frame loader.
*/
void disallowCreateFrameLoader ();
pub unsafe fn AllowCreateFrameLoader(&self) -> nsresult
[src]
void allowCreateFrameLoader ();
pub unsafe fn CreateRemoteFrameLoader(
&self,
aTabParent: *const nsITabParent
) -> nsresult
[src]
&self,
aTabParent: *const nsITabParent
) -> nsresult
/**
* Create a remote (i.e., out-of-process) frame loader attached to the given
* tab parent.
*
* It is an error to call this method if we already have a frame loader.
*/
void createRemoteFrameLoader (in nsITabParent aTabParent);
pub unsafe fn InitializeBrowserAPI(&self) -> nsresult
[src]
/**
* Initialize the API, and add frame message listener that supports API
* invocations.
*/
[noscript] void initializeBrowserAPI ();
pub unsafe fn DestroyBrowserFrameScripts(&self) -> nsresult
[src]
/**
* Notify frame scripts that support the API to destroy.
*/
[noscript] void destroyBrowserFrameScripts ();
Methods from Deref<Target = nsIDOMMozBrowserFrame>
pub fn coerce<T: nsIDOMMozBrowserFrameCoerce>(&self) -> &T
[src]
Cast this nsIDOMMozBrowserFrame
to one of its base interfaces.
pub unsafe fn GetMozbrowser(&self, aMozbrowser: *mut bool) -> nsresult
[src]
/**
* <iframe> element may have the mozbrowser attribute.
*
* The mozbrowser attribute has no effect unless the <iframe> element is
* contained in a document privileged to create browser frames.
*
* An <iframe> element in a privileged document with the mozbrowser attribute
* emits a variety of events when various things happen inside the frame.
*
* This will be documented eventually, but for more information at the moment,
* see dom/browser-element/BrowserElement{Child,Parent}.js.
*
*/
attribute boolean mozbrowser;
pub unsafe fn SetMozbrowser(&self, aMozbrowser: bool) -> nsresult
[src]
/**
* <iframe> element may have the mozbrowser attribute.
*
* The mozbrowser attribute has no effect unless the <iframe> element is
* contained in a document privileged to create browser frames.
*
* An <iframe> element in a privileged document with the mozbrowser attribute
* emits a variety of events when various things happen inside the frame.
*
* This will be documented eventually, but for more information at the moment,
* see dom/browser-element/BrowserElement{Child,Parent}.js.
*
*/
attribute boolean mozbrowser;
Trait Implementations
impl XpCom for nsIMozBrowserFrame
[src]
const IID: nsIID
IID: nsIID = nsID(202016300, 6727, 17344, [174, 158, 213, 24, 53, 227, 225, 166])
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 nsIMozBrowserFrame
[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 nsIMozBrowserFrame
[src]
type Target = nsIDOMMozBrowserFrame
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMMozBrowserFrame
[src]
Dereferences the value.