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

Side by Side Diff: components/arc/common/power.mojom

Issue 1618963006: Mojo C++ bindings: support enum validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module arc; 5 module arc;
6 6
7 // Enumerates the types of wake lock the ARC instance can request from the 7 // Enumerates the types of wake lock the ARC instance can request from the
8 // host. 8 // host.
9 [Extensible=True]
9 enum DisplayWakeLockType { 10 enum DisplayWakeLockType {
10 // Does not allow the screen to dim, turn off, or lock; prevents 11 // Does not allow the screen to dim, turn off, or lock; prevents
11 // idle suspend. 12 // idle suspend.
12 BRIGHT = 0, 13 BRIGHT = 0,
13 14
14 // Allows dimming the screen, but prevents it from turning off or locking. 15 // Allows dimming the screen, but prevents it from turning off or locking.
15 // Also prevents idle suspend. 16 // Also prevents idle suspend.
16 DIM = 1 17 DIM = 1
17 }; 18 };
18 19
19 interface PowerHost { 20 interface PowerHost {
20 // Acquire and release wake locks on the host side. 21 // Acquire and release wake locks on the host side.
21 OnAcquireDisplayWakeLock(DisplayWakeLockType type); 22 OnAcquireDisplayWakeLock(DisplayWakeLockType type);
22 OnReleaseDisplayWakeLock(DisplayWakeLockType type); 23 OnReleaseDisplayWakeLock(DisplayWakeLockType type);
23 }; 24 };
24 25
25 interface PowerInstance { 26 interface PowerInstance {
26 // Establishes full-duplex communication with the host. 27 // Establishes full-duplex communication with the host.
27 Init(PowerHost host_ptr); 28 Init(PowerHost host_ptr);
28 }; 29 };
OLDNEW
« no previous file with comments | « components/arc/common/net.mojom ('k') | mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698