Struct xpcom::interfaces::nsIContentPermissionRequest
[−]
[src]
#[repr(C)]pub struct nsIContentPermissionRequest { /* fields omitted */ }
interface nsIContentPermissionRequest : nsISupports
/**
* Interface allows access to a content to request
* permission to perform a privileged operation such as
* geolocation.
*/
Methods
impl nsIContentPermissionRequest
[src]
pub fn coerce<T: nsIContentPermissionRequestCoerce>(&self) -> &T
[src]
Cast this nsIContentPermissionRequest
to one of its base interfaces.
impl nsIContentPermissionRequest
[src]
pub unsafe fn GetTypes(&self, aTypes: *mut *const nsIArray) -> nsresult
[src]
/**
* The array will include the request types. Elements of this array are
* nsIContentPermissionType object.
*/
readonly attribute nsIArray types;
pub unsafe fn GetPrincipal(
&self,
aPrincipal: *mut *const nsIPrincipal
) -> nsresult
[src]
&self,
aPrincipal: *mut *const nsIPrincipal
) -> nsresult
readonly attribute nsIPrincipal principal;
pub unsafe fn GetWindow(&self, aWindow: *mut *const mozIDOMWindow) -> nsresult
[src]
/**
* The window or element that the permission request was
* originated in. Typically the element will be non-null
* in when using out of process content. window or
* element can be null but not both.
*/
readonly attribute mozIDOMWindow window;
pub unsafe fn GetElement(&self, aElement: *mut *const nsIDOMElement) -> nsresult
[src]
readonly attribute nsIDOMElement element;
pub unsafe fn GetIsHandlingUserInput(
&self,
aIsHandlingUserInput: *mut bool
) -> nsresult
[src]
&self,
aIsHandlingUserInput: *mut bool
) -> nsresult
readonly attribute boolean isHandlingUserInput;
pub unsafe fn GetRequester(
&self,
aRequester: *mut *const nsIContentPermissionRequester
) -> nsresult
[src]
&self,
aRequester: *mut *const nsIContentPermissionRequester
) -> nsresult
/**
* The requester to get the required information of
* the window.
*/
readonly attribute nsIContentPermissionRequester requester;
pub unsafe fn Cancel(&self) -> nsresult
[src]
/**
* allow or cancel the request
*/
void cancel ();
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIContentPermissionRequest
[src]
const IID: nsIID
IID: nsIID = nsID(2270639066, 2752, 18982, [140, 118, 112, 163, 8, 118, 190, 70])
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 nsIContentPermissionRequest
[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 nsIContentPermissionRequest
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.