| 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 "compiler_options": { | |
| 8 "implemented_in": "chrome/browser/chromeos/extensions/power/power_api.h" | |
| 9 }, | |
| 10 "platforms": ["chromeos"], | |
| 11 "types": [], | |
| 12 "functions": [ | |
| 13 { | |
| 14 "name": "requestKeepAwake", | |
| 15 "type": "function", | |
| 16 "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.", | |
| 17 "parameters": [ | |
| 18 { | |
| 19 "name": "callback", | |
| 20 "type": "function", | |
| 21 "optional": true, | |
| 22 "parameters": [ | |
| 23 { | |
| 24 "name": "success", | |
| 25 "type": "boolean", | |
| 26 "description": "True if the request was successful, false otherw
ise." | |
| 27 } | |
| 28 ] | |
| 29 } | |
| 30 ] | |
| 31 }, | |
| 32 { | |
| 33 "name": "releaseKeepAwake", | |
| 34 "type": "function", | |
| 35 "description": "Releases a keep awake request. Once there are no keep aw
ake requests active on the system, normal power management will resume.", | |
| 36 "parameters": [ | |
| 37 { | |
| 38 "name": "callback", | |
| 39 "type": "function", | |
| 40 "optional": true, | |
| 41 "parameters": [ | |
| 42 { | |
| 43 "name": "success", | |
| 44 "type": "boolean", | |
| 45 "description": "True if the release was successful, false otherw
ise." | |
| 46 } | |
| 47 ] | |
| 48 } | |
| 49 ] | |
| 50 } | |
| 51 ] | |
| 52 } | |
| 53 ] | |
| OLD | NEW |