Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: chrome/common/extensions/api/experimental_power.json

Issue 12576018: Add chrome.power extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add copyright notice to example extension Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/power.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/power.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698