chromium/third_party/blink/renderer/modules/wake_lock/worker_navigator_wake_lock.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This was originally in
// https://w3c.github.io/wake-lock/#extensions-to-the-workernavigator-interface
// until System Wake Lock API was split from the Screen Wake Lock API.

[
  Exposed=DedicatedWorker,
  ImplementedAs=WakeLock,
  RuntimeEnabled=SystemWakeLock,
  SecureContext
] partial interface WorkerNavigator {
  [SameObject] readonly attribute WakeLock wakeLock;
};