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

Side by Side Diff: extensions/common/api/power.idl

Issue 1841543002: [Extensions] Convert APIs to use movable types [12] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Use the <code>chrome.power</code> API to override the system's power 5 // Use the <code>chrome.power</code> API to override the system's power
6 // management features. 6 // management features.
7 namespace power { 7 [use_movable_types=true] namespace power {
8 [noinline_doc] enum Level { 8 [noinline_doc] enum Level {
9 // Prevent the system from sleeping in response to user inactivity. 9 // Prevent the system from sleeping in response to user inactivity.
10 system, 10 system,
11 11
12 // 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
13 // from sleeping in response to user inactivity. 13 // from sleeping in response to user inactivity.
14 display 14 display
15 }; 15 };
16 16
17 interface Functions { 17 interface Functions {
18 // Requests that power management be temporarily disabled. |level| 18 // Requests that power management be temporarily disabled. |level|
19 // describes the degree to which power management should be disabled. 19 // describes the degree to which power management should be disabled.
20 // If a request previously made by the same app is still active, it 20 // If a request previously made by the same app is still active, it
21 // will be replaced by the new request. 21 // will be replaced by the new request.
22 static void requestKeepAwake(Level level); 22 static void requestKeepAwake(Level level);
23 23
24 // Releases a request previously made via requestKeepAwake(). 24 // Releases a request previously made via requestKeepAwake().
25 static void releaseKeepAwake(); 25 static void releaseKeepAwake();
26 }; 26 };
27 }; 27 };
OLDNEW
« no previous file with comments | « extensions/common/api/networking_private.idl ('k') | extensions/common/api/printer_provider.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698