mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-07-25 19:52:50 +02:00
23 lines
570 B
Text
23 lines
570 B
Text
/* 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" };
|