| OLD | NEW |
| 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 { | 6 { |
| 7 "namespace": "managedModePrivate", | 7 "namespace": "managedModePrivate", |
| 8 "nodoc": true, | 8 "nodoc": true, |
| 9 "functions": [ | 9 "functions": [ |
| 10 { | 10 { |
| 11 "name": "enter", | 11 "name": "enter", |
| 12 "type": "function", | 12 "type": "function", |
| 13 "description": "Shows a confirmation dialog, then puts the browser into
managed mode. The callback parameter will be true if managed mode was entered su
ccessfully, false if the user cancelled the confirmation. If managed mode is alr
eady on, trying to enter it again will have no effect.", | 13 "description": "Shows a confirmation dialog, then puts the browser into
managed mode. The callback parameter will be true if managed mode was entered su
ccessfully, false if the user cancelled the confirmation. If managed mode is alr
eady on, trying to enter it again will have no effect.", |
| 14 "parameters": [ | 14 "parameters": [ |
| 15 { | 15 { |
| 16 "type": "function", | 16 "type": "function", |
| 17 "name": "callback", | 17 "name": "callback", |
| 18 "optional": true, | 18 "optional": true, |
| 19 "parameters": [ | 19 "parameters": [ |
| 20 { | 20 { |
| 21 "name": "result", | 21 "name": "result", |
| 22 "type": "object", | 22 "type": "object", |
| 23 "description": "The result of the attempt to enter managed mode.
", | 23 "description": "The result of the attempt to enter managed mode.
", |
| 24 "properties": { | 24 "properties": { |
| 25 "success": { | 25 "success": { |
| 26 "description": "True if managed mode was entered successfull
y, false if the user cancelled the confirmation.", | 26 "description": "True if managed mode was entered successfull
y, false if the user cancelled the confirmation.", |
| 27 "type": "boolean" | 27 "type": "boolean" |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 ] | 31 ] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 "properties": { | 48 "properties": { |
| 49 "value": { | 49 "value": { |
| 50 "description": "The value of the setting.", | 50 "description": "The value of the setting.", |
| 51 "type": "boolean" | 51 "type": "boolean" |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 ] | 55 ] |
| 56 } | 56 } |
| 57 ] | 57 ] |
| 58 }, |
| 59 { |
| 60 "name": "setPolicy", |
| 61 "type": "function", |
| 62 "description": "Sets a policy.", |
| 63 "parameters": [ |
| 64 { |
| 65 "name": "key", |
| 66 "type": "string", |
| 67 "description": "Policy key." |
| 68 }, |
| 69 { |
| 70 "name": "value", |
| 71 "type": "any", |
| 72 "description": "Policy value." |
| 73 }, |
| 74 { |
| 75 "type": "function", |
| 76 "name": "callback", |
| 77 "optional": true, |
| 78 "parameters": [] |
| 79 } |
| 80 ] |
| 81 }, |
| 82 { |
| 83 "name": "getPolicy", |
| 84 "type": "function", |
| 85 "description": "Gets a policy value.", |
| 86 "parameters": [ |
| 87 { |
| 88 "name": "key", |
| 89 "type": "string", |
| 90 "description": "Policy key." |
| 91 }, |
| 92 { |
| 93 "type": "function", |
| 94 "name": "callback", |
| 95 "optional": true, |
| 96 "parameters": [ |
| 97 { |
| 98 "name": "value", |
| 99 "type": "any", |
| 100 "description": "Policy value or null if no policy is set.", |
| 101 "optional": true |
| 102 } |
| 103 ] |
| 104 } |
| 105 ] |
| 58 } | 106 } |
| 59 ], | 107 ], |
| 60 "events": [ | 108 "events": [ |
| 61 { | 109 { |
| 62 "name": "onChange", | 110 "name": "onChange", |
| 63 "description": "Fired when the value of the setting changes.", | 111 "description": "Fired when the value of the setting changes.", |
| 64 "parameters": [ | 112 "parameters": [ |
| 65 { | 113 { |
| 66 "type": "object", | 114 "type": "object", |
| 67 "name": "details", | 115 "name": "details", |
| 68 "properties": { | 116 "properties": { |
| 69 "value": { | 117 "value": { |
| 70 "description": "The value of the setting.", | 118 "description": "The value of the setting.", |
| 71 "type": "any" | 119 "type": "any" |
| 72 } | 120 } |
| 73 } | 121 } |
| 74 } | 122 } |
| 75 ] | 123 ] |
| 76 } | 124 } |
| 77 ] | 125 ] |
| 78 } | 126 } |
| 79 ] | 127 ] |
| OLD | NEW |