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

Unified Diff: third_party/chrome/idl/managed_mode_private.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
« no previous file with comments | « third_party/chrome/idl/input_method_private.json ('k') | third_party/chrome/idl/management.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/managed_mode_private.json
diff --git a/third_party/chrome/idl/managed_mode_private.json b/third_party/chrome/idl/managed_mode_private.json
new file mode 100644
index 0000000000000000000000000000000000000000..8c5a63b311e91eb27a341db28a032b535d90597d
--- /dev/null
+++ b/third_party/chrome/idl/managed_mode_private.json
@@ -0,0 +1,127 @@
+// 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": "managedModePrivate",
+ "nodoc": true,
+ "functions": [
+ {
+ "name": "enter",
+ "type": "function",
+ "description": "Shows a confirmation dialog, then puts the browser into managed mode. The callback parameter will be true if managed mode was entered successfully, false if the user cancelled the confirmation. If managed mode is already on, trying to enter it again will have no effect.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "result",
+ "type": "object",
+ "description": "The result of the attempt to enter managed mode.",
+ "properties": {
+ "success": {
+ "description": "True if managed mode was entered successfully, false if the user cancelled the confirmation.",
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "get",
+ "type": "function",
+ "description": "Gets the value of the setting describing whether managed mode is in effect.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "description": "Details of the currently effective value.",
+ "properties": {
+ "value": {
+ "description": "The value of the setting.",
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "setPolicy",
+ "type": "function",
+ "description": "Sets a policy.",
+ "parameters": [
+ {
+ "name": "key",
+ "type": "string",
+ "description": "Policy key."
+ },
+ {
+ "name": "value",
+ "type": "any",
+ "description": "Policy value."
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": []
+ }
+ ]
+ },
+ {
+ "name": "getPolicy",
+ "type": "function",
+ "description": "Gets a policy value.",
+ "parameters": [
+ {
+ "name": "key",
+ "type": "string",
+ "description": "Policy key."
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "value",
+ "type": "any",
+ "description": "Policy value or null if no policy is set.",
+ "optional": true
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "onChange",
+ "description": "Fired when the value of the setting changes.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "details",
+ "properties": {
+ "value": {
+ "description": "The value of the setting.",
+ "type": "any"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « third_party/chrome/idl/input_method_private.json ('k') | third_party/chrome/idl/management.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698