OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // An API that can be used to override the system's power management | 5 // An API that can be used to override the system's power management |
6 // features. | 6 // features. |
7 [permissions=power] | 7 [permissions=power] |
8 namespace power { | 8 namespace power { |
9 enum Level { | 9 [inline_doc] enum Level { |
10 // Prevent the system from sleeping in response to user inactivity. | 10 // Prevent the system from sleeping in response to user inactivity. |
11 system, | 11 system, |
12 | 12 |
13 // Prevent the display from being turned off or dimmed or the system | 13 // Prevent the display from being turned off or dimmed or the system |
14 // from sleeping in response to user inactivity. | 14 // from sleeping in response to user inactivity. |
15 display | 15 display |
16 }; | 16 }; |
17 | 17 |
18 interface Functions { | 18 interface Functions { |
19 // Requests that power management be temporarily disabled. |level| | 19 // Requests that power management be temporarily disabled. |level| |
20 // describes the degree to which power management should be disabled. | 20 // describes the degree to which power management should be disabled. |
21 static void requestKeepAwake(Level level); | 21 static void requestKeepAwake(Level level); |
cduvall
2013/04/18 00:02:41
Can you also test an inline ref nested within a pa
| |
22 | 22 |
23 // Releases a request previously made via requestKeepAwake(). | 23 // Releases a request previously made via requestKeepAwake(). |
24 static void releaseKeepAwake(); | 24 static void releaseKeepAwake(); |
25 }; | 25 }; |
26 }; | 26 }; |
OLD | NEW |