Struct xpcom::interfaces::nsIDOMMozWakeLockListener [] [src]

#[repr(C)]
pub struct nsIDOMMozWakeLockListener { /* fields omitted */ }

interface nsIDOMMozWakeLockListener : nsISupports

Methods

impl nsIDOMMozWakeLockListener
[src]

[src]

Cast this nsIDOMMozWakeLockListener to one of its base interfaces.

impl nsIDOMMozWakeLockListener
[src]

[src]

/**
   * The callback will be called when a lock topic changes its lock
   * state.
   *
   * Possible states are:
   *
   *  - "unlocked" - nobody holds the wake lock.
   *
   *  - "locked-foreground" - at least one window holds the wake lock,
   *    and it is visible.
   *
   *  - "locked-background" - at least one window holds the wake lock,
   *    but all of them are hidden.
   *
   * @param aTopic The resource name related to the wake lock.
   * @param aState The wake lock state
   */

void callback (in DOMString aTopic, in DOMString aState);

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

IID: nsIID = nsID(1311083256, 53243, 18364, [177, 109, 232, 36, 18, 67, 66, 110])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDOMMozWakeLockListener
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.