Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: components/arc/common/power.mojom

Issue 1523643002: arc-bridge: Move most methods to Mojo interfaces (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased to ToT Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/common/notifications.mojom ('k') | components/arc/common/process.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/power.mojom
diff --git a/components/arc/common/power.mojom b/components/arc/common/power.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b1cfbae41a746ae1c30982e74fcc8892e0f07687
--- /dev/null
+++ b/components/arc/common/power.mojom
@@ -0,0 +1,28 @@
+// Copyright 2015 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.
+
+module arc;
+
+// Enumerates the types of wake lock the ARC instance can request from the
+// host.
+enum DisplayWakeLockType {
+ // Does not allow the screen to dim, turn off, or lock; prevents
+ // idle suspend.
+ BRIGHT = 0,
+
+ // Allows dimming the screen, but prevents it from turning off or locking.
+ // Also prevents idle suspend.
+ DIM = 1
+};
+
+interface PowerHost {
+ // Acquire and release wake locks on the host side.
+ OnAcquireDisplayWakeLock(DisplayWakeLockType type);
+ OnReleaseDisplayWakeLock(DisplayWakeLockType type);
+};
+
+interface PowerInstance {
+ // Establishes full-duplex communication with the host.
+ Init(PowerHost host_ptr);
+};
« no previous file with comments | « components/arc/common/notifications.mojom ('k') | components/arc/common/process.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698