https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0cdeea831cad1521409387c055d5f2c702a1dd88 authored by Ian Clelland on 11 April 2018, 02:30:42 UTC
Make DOMTokenList.supports() case-insensitive
Tip revision: 0cdeea8
wake-lock.idl
enum WakeLockType {
    "screen",
    "system"
};

partial interface Navigator {
    [SecureContext] Promise<WakeLock> getWakeLock(WakeLockType type);
};

[SecureContext,
 Exposed=Window]
interface WakeLock : EventTarget {
    readonly attribute WakeLockType type;
    readonly attribute boolean      active;
             attribute EventHandler onactivechange;
    WakeLockRequest createRequest();
};

[SecureContext,
 Exposed=Window]
interface WakeLockRequest {
    void cancel();
};
back to top