Struct xpcom::interfaces::nsIWindowCreator2
[−]
[src]
#[repr(C)]pub struct nsIWindowCreator2 { /* fields omitted */ }
interface nsIWindowCreator2 : nsIWindowCreator
Methods
impl nsIWindowCreator2
[src]
pub fn coerce<T: nsIWindowCreator2Coerce>(&self) -> &T
[src]
Cast this nsIWindowCreator2
to one of its base interfaces.
impl nsIWindowCreator2
[src]
pub unsafe fn CreateChromeWindow2(
&self,
parent: *const nsIWebBrowserChrome,
chromeFlags: uint32_t,
aOpeningTab: *const nsITabParent,
aOpener: *const mozIDOMWindowProxy,
aNextTabParentId: uint64_t,
cancel: *mut bool,
_retval: *mut *const nsIWebBrowserChrome
) -> nsresult
[src]
&self,
parent: *const nsIWebBrowserChrome,
chromeFlags: uint32_t,
aOpeningTab: *const nsITabParent,
aOpener: *const mozIDOMWindowProxy,
aNextTabParentId: uint64_t,
cancel: *mut bool,
_retval: *mut *const nsIWebBrowserChrome
) -> nsresult
/** Create a new window. Gecko will/may call this method, if made
available to it, to create new windows.
@param parent Parent window, if any. Null if not. The newly created
window should be made a child/dependent window of
the parent, if any (and if the concept applies
to the underlying OS).
@param chromeFlags Chrome features from nsIWebBrowserChrome
@param aOpeningTab The TabParent that is trying to open this new chrome
window. Can be nullptr.
@param aOpener The window which is trying to open this new chrome window.
Can be nullptr
@param aNextTabParentId The integer ID of the next tab parent actor to use.
0 means there is no next tab parent ID to use.
@param cancel Return |true| to reject window creation. If true the
implementation has determined the window should not
be created at all. The caller should not default
to any possible backup scheme for creating the window.
@return the new window. Will be null if canceled or an error occurred.
*/
nsIWebBrowserChrome createChromeWindow2 (in nsIWebBrowserChrome parent, in uint32_t chromeFlags, in nsITabParent aOpeningTab, in mozIDOMWindowProxy aOpener, in unsigned long long aNextTabParentId, out boolean cancel);
pub unsafe fn SetScreenId(&self, aScreenId: uint32_t) -> nsresult
[src]
/**
* B2G multi-screen support. When open another top-level window on b2g,
* a screen ID is needed for identifying which screen this window is
* opened to.
* @param aScreenId Differentiate screens of windows. It is platform-
* specific due to the hardware limitation for now.
*/
[noscript] void setScreenId (in uint32_t aScreenId);
Methods from Deref<Target = nsIWindowCreator>
pub fn coerce<T: nsIWindowCreatorCoerce>(&self) -> &T
[src]
Cast this nsIWindowCreator
to one of its base interfaces.
pub unsafe fn CreateChromeWindow(
&self,
parent: *const nsIWebBrowserChrome,
chromeFlags: uint32_t,
_retval: *mut *const nsIWebBrowserChrome
) -> nsresult
[src]
&self,
parent: *const nsIWebBrowserChrome,
chromeFlags: uint32_t,
_retval: *mut *const nsIWebBrowserChrome
) -> nsresult
/** Create a new window. Gecko will/may call this method, if made
available to it, to create new windows.
@param parent parent window, if any. null if not. the newly created
window should be made a child/dependent window of
the parent, if any (and if the concept applies
to the underlying OS).
@param chromeFlags chrome features from nsIWebBrowserChrome
@return the new window
*/
nsIWebBrowserChrome createChromeWindow (in nsIWebBrowserChrome parent, in uint32_t chromeFlags);
Trait Implementations
impl XpCom for nsIWindowCreator2
[src]
const IID: nsIID
IID: nsIID = nsID(3066316425, 63870, 20274, [167, 35, 41, 238, 221, 251, 220, 83])
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 nsIWindowCreator2
[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 nsIWindowCreator2
[src]
type Target = nsIWindowCreator
The resulting type after dereferencing.
fn deref(&self) -> &nsIWindowCreator
[src]
Dereferences the value.