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: chrome/common/extensions/api/power.idl

Issue 15091002: Lazily load API schemas from resource files and convert all APIs to features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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]
8 namespace power { 7 namespace power {
9 [noinline_doc] enum Level { 8 [noinline_doc] enum Level {
10 // Prevent the system from sleeping in response to user inactivity. 9 // Prevent the system from sleeping in response to user inactivity.
11 system, 10 system,
12 11
13 // Prevent the display from being turned off or dimmed or the system 12 // Prevent the display from being turned off or dimmed or the system
14 // from sleeping in response to user inactivity. 13 // from sleeping in response to user inactivity.
15 display 14 display
16 }; 15 };
17 16
18 interface Functions { 17 interface Functions {
19 // Requests that power management be temporarily disabled. |level| 18 // Requests that power management be temporarily disabled. |level|
20 // describes the degree to which power management should be disabled. 19 // describes the degree to which power management should be disabled.
21 static void requestKeepAwake(Level level); 20 static void requestKeepAwake(Level level);
22 21
23 // Releases a request previously made via requestKeepAwake(). 22 // Releases a request previously made via requestKeepAwake().
24 static void releaseKeepAwake(); 23 static void releaseKeepAwake();
25 }; 24 };
26 }; 25 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698