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

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

Issue 12576018: Add chrome.power extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update PermissionsTest.PermissionMessages Created 7 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // An API that can be used to override the system's power management
6 // features.
7 [permissions=power]
8 namespace power {
9 interface Functions {
10 // Requests that power management be temporarily disabled. |level|
not at google - send to devlin 2013/03/19 21:16:39 Should level be an enum?
Daniel Erat 2013/03/19 23:39:38 Done.
11 // describes the degree to which power management should be disabled;
12 // "system" prevents the system from sleeping in response to user
13 // inactivity while "display" additionally prevents the display from
14 // being dimmed or turned off.
15 static void requestKeepAwake(optional DOMString level);
16
17 // Releases a request previously made via requestKeepAwake().
18 static void releaseKeepAwake();
19 };
20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698