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]

[src]

Cast this nsIContentPermissionRequest to one of its base interfaces.

impl nsIContentPermissionRequest
[src]

[src]

/**
   *  The array will include the request types. Elements of this array are
   *  nsIContentPermissionType object.
   */

readonly attribute nsIArray types;

[src]

readonly attribute nsIPrincipal principal;

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

[src]

readonly attribute nsIDOMElement element;

[src]

readonly attribute boolean isHandlingUserInput;

[src]

/**
   *  The requester to get the required information of
   *  the window.
   */

readonly attribute nsIContentPermissionRequester requester;

[src]

/**
   * allow or cancel the request
   */

void cancel ();

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

IID: nsIID = nsID(2270639066, 2752, 18982, [140, 118, 112, 163, 8, 118, 190, 70])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIContentPermissionRequest
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.