blob: 752c220fb70325275aac3d86cd81b97195d4afe7 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/screen-wake-lock/#the-wakelocksentinel-interface
[
ActiveScriptWrappable,
Exposed(DedicatedWorker SystemWakeLock, Window WakeLock),
SecureContext
] interface WakeLockSentinel : EventTarget {
attribute EventHandler onrelease;
readonly attribute boolean released;
readonly attribute WakeLockType type;
[CallWith=ScriptState] Promise<void> release();
};