Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
23
third-party/vendor/web-sys/webidls/unstable/ScreenWakeLock.webidl
vendored
Normal file
23
third-party/vendor/web-sys/webidls/unstable/ScreenWakeLock.webidl
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* The origin of this IDL file is
|
||||
* https://www.w3.org/TR/screen-wake-lock/#idl-index
|
||||
*/
|
||||
|
||||
[SecureContext]
|
||||
partial interface Navigator {
|
||||
[SameObject] readonly attribute WakeLock wakeLock;
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=(Window)]
|
||||
interface WakeLock {
|
||||
Promise<WakeLockSentinel> request(WakeLockType type);
|
||||
};
|
||||
|
||||
[SecureContext, Exposed=(Window)]
|
||||
interface WakeLockSentinel : EventTarget {
|
||||
readonly attribute boolean released;
|
||||
readonly attribute WakeLockType type;
|
||||
Promise<undefined> release();
|
||||
attribute EventHandler onrelease;
|
||||
};
|
||||
|
||||
enum WakeLockType { "screen" };
|
||||
Loading…
Add table
Add a link
Reference in a new issue