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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/power.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental_power.json
diff --git a/chrome/common/extensions/api/experimental_power.json b/chrome/common/extensions/api/experimental_power.json
deleted file mode 100644
index 109094277544e64adb7adbca9b39b1e76a6b48d5..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/experimental_power.json
+++ /dev/null
@@ -1,53 +0,0 @@
-// 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",
- "compiler_options": {
- "implemented_in": "chrome/browser/chromeos/extensions/power/power_api.h"
- },
- "platforms": ["chromeos"],
- "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."
- }
- ]
- }
- ]
- }
- ]
- }
-]
« 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