OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 "namespace": "experimental.power", | 6 "namespace": "experimental.power", |
| 7 "compiler_options": { |
| 8 "implemented_in": "chrome/browser/chromeos/extensions/power/power_api.h" |
| 9 }, |
| 10 "platforms": ["chromeos"], |
7 "types": [], | 11 "types": [], |
8 "functions": [ | 12 "functions": [ |
9 { | 13 { |
10 "name": "requestKeepAwake", | 14 "name": "requestKeepAwake", |
11 "type": "function", | 15 "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.", | 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.", |
13 "parameters": [ | 17 "parameters": [ |
14 { | 18 { |
15 "name": "callback", | 19 "name": "callback", |
16 "type": "function", | 20 "type": "function", |
(...skipping 23 matching lines...) Expand all Loading... |
40 "type": "boolean", | 44 "type": "boolean", |
41 "description": "True if the release was successful, false otherw
ise." | 45 "description": "True if the release was successful, false otherw
ise." |
42 } | 46 } |
43 ] | 47 ] |
44 } | 48 } |
45 ] | 49 ] |
46 } | 50 } |
47 ] | 51 ] |
48 } | 52 } |
49 ] | 53 ] |
OLD | NEW |