https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7b34dc7dc9f2ff8fbcf3445709fa7e517f2c6fb4 authored by Domenic Denicola on 06 April 2018, 22:15:02 UTC
WIP tests for text/css link quirk
Tip revision: 7b34dc7
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