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

Unified Diff: third_party/chrome/idl/experimental_power.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 side-by-side diff with in-line comments
Download patch
Index: third_party/chrome/idl/experimental_power.json
diff --git a/third_party/chrome/idl/experimental_power.json b/third_party/chrome/idl/experimental_power.json
new file mode 100644
index 0000000000000000000000000000000000000000..8f3ac0bfad5b6932894be2118648078ebb9e518e
--- /dev/null
+++ b/third_party/chrome/idl/experimental_power.json
@@ -0,0 +1,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."
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « third_party/chrome/idl/experimental_notification.idl ('k') | third_party/chrome/idl/experimental_processes.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698