 Chromium Code Reviews
 Chromium Code Reviews Issue 12576018:
  Add chrome.power extension API.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 12576018:
  Add chrome.power extension API.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| OLD | NEW | 
|---|---|
| (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 }; | |
| OLD | NEW |