https://github.com/web-platform-tests/wpt
Raw File
Tip revision: fda5b2f7c785b32ad563e3bf0c28e407d0199bad authored by Florian Rivoal on 30 March 2018, 04:19:15 UTC
[css-align] Fix typo and clean-up markup
Tip revision: fda5b2f
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