1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "experimental.power",
"types": [],
"functions": [
{
"name": "requestKeepAwake",
"type": "function",
"description": "Requests that the machine be kept awake. Requests can be canceled manually with releaseKeepAwake, and are automatically canceled when the machine is restarted, or when the extension is disabled or uninstalled. Calling this multiple times has the same effect as calling it once.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": [
{
"name": "success",
"type": "boolean",
"description": "True if the request was successful, false otherwise."
}
]
}
]
},
{
"name": "releaseKeepAwake",
"type": "function",
"description": "Releases a keep awake request. Once there are no keep awake requests active on the system, normal power management will resume.",
"parameters": [
{
"name": "callback",
"type": "function",
"optional": true,
"parameters": [
{
"name": "success",
"type": "boolean",
"description": "True if the release was successful, false otherwise."
}
]
}
]
}
]
}
]
|