tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

screen-wake-lock.idl (703B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Screen Wake Lock API (https://w3c.github.io/screen-wake-lock/)
      5 
      6 [SecureContext]
      7 partial interface Navigator {
      8  [SameObject] readonly attribute WakeLock wakeLock;
      9 };
     10 
     11 [SecureContext, Exposed=(Window)]
     12 interface WakeLock {
     13  Promise<WakeLockSentinel> request(optional WakeLockType type = "screen");
     14 };
     15 
     16 [SecureContext, Exposed=(Window)]
     17 interface WakeLockSentinel : EventTarget {
     18  readonly attribute boolean released;
     19  readonly attribute WakeLockType type;
     20  Promise<undefined> release();
     21  attribute EventHandler onrelease;
     22 };
     23 
     24 enum WakeLockType { "screen" };