power.mojom 892 B

1234567891011121314151617181920212223
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. import "services/device/public/mojom/wake_lock.mojom";
  6. // An empty interface to enable Power.AddPowerSaveBlocker() to maintain a
  7. // connection to its caller, and free resources on disconnect.
  8. [Stable, Uuid="742bde40-5689-44bb-807e-6252ff54d635"]
  9. interface PowerWakeLock {
  10. };
  11. // Crosapi support for chrome.system.display extensions API.
  12. [Stable, Uuid="878f8be2-ad59-4cc6-84ef-abc5102da696"]
  13. interface Power {
  14. // Creates a PowerSaveBlocker that lasts until |lock| disconnects.
  15. AddPowerSaveBlocker@0(pending_remote<PowerWakeLock> lock,
  16. device.mojom.WakeLockType type,
  17. device.mojom.WakeLockReason reason,
  18. string description);
  19. };