| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 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 { |
| 6 "namespace": "experimental.power", |
| 7 "types": [], |
| 8 "functions": [ |
| 9 { |
| 10 "name": "requestKeepAwake", |
| 11 "type": "function", |
| 12 "description": "Requests that the machine be kept awake. Requests can be
canceled manually with releaseKeepAwake, and are automatically canceled when th
e machine is restarted, or when the extension is disabled or uninstalled. Callin
g this multiple times has the same effect as calling it once.", |
| 13 "parameters": [ |
| 14 { |
| 15 "name": "callback", |
| 16 "type": "function", |
| 17 "optional": true, |
| 18 "parameters": [ |
| 19 { |
| 20 "name": "success", |
| 21 "type": "boolean", |
| 22 "description": "True if the request was successful, false otherw
ise." |
| 23 } |
| 24 ] |
| 25 } |
| 26 ] |
| 27 }, |
| 28 { |
| 29 "name": "releaseKeepAwake", |
| 30 "type": "function", |
| 31 "description": "Releases a keep awake request. Once there are no keep aw
ake requests active on the system, normal power management will resume.", |
| 32 "parameters": [ |
| 33 { |
| 34 "name": "callback", |
| 35 "type": "function", |
| 36 "optional": true, |
| 37 "parameters": [ |
| 38 { |
| 39 "name": "success", |
| 40 "type": "boolean", |
| 41 "description": "True if the release was successful, false otherw
ise." |
| 42 } |
| 43 ] |
| 44 } |
| 45 ] |
| 46 } |
| 47 ] |
| 48 } |
| 49 ] |
| OLD | NEW |