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

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

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
OLDNEW
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
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698