OLD | NEW |
(Empty) | |
| 1 [ |
| 2 { |
| 3 "namespace": "experimental.managedMode", |
| 4 "functions": [ |
| 5 { |
| 6 "name": "enable", |
| 7 "type": "function", |
| 8 "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.<br>Extensions cannot d
isable managed mode. This must be done by the user from within the browser itsel
f.", |
| 9 "parameters": [ |
| 10 { |
| 11 "type": "function", |
| 12 "name": "callback", |
| 13 "optional": true, |
| 14 "parameters": [ |
| 15 { |
| 16 "name": "result", |
| 17 "type": "object", |
| 18 "description": "The result of the attempt to enable managed mode
.", |
| 19 "properties": { |
| 20 "success": { |
| 21 "description": "True if managed mode was entered successfull
y, false if the user cancelled the confirmation.", |
| 22 "type": "boolean" |
| 23 } |
| 24 } |
| 25 } |
| 26 ] |
| 27 } |
| 28 ] |
| 29 }, |
| 30 { |
| 31 "name": "get", |
| 32 "type": "function", |
| 33 "description": "Gets the value of the setting describing whether managed
mode is enabled.", |
| 34 "parameters": [ |
| 35 { |
| 36 "type": "function", |
| 37 "name": "callback", |
| 38 "description": "This callback function is similar to <a href='types.
html#method-ChromeSetting-get'>that used by a ChromeSetting</a>, except that the
<code>incognitoSpecific</code> parameter will never be present and only a subse
t of the values of <code>levelOfControl</code> are possible.", |
| 39 "parameters": [ |
| 40 { |
| 41 "name": "details", |
| 42 "type": "object", |
| 43 "description": "Details of the currently effective value.", |
| 44 "properties": { |
| 45 "value": { |
| 46 "description": "The value of the setting.", |
| 47 "type": "boolean" |
| 48 }, |
| 49 "levelOfControl": { |
| 50 "description": "One of<br><var>not_controllable</var>: canno
t be controlled by any extension<br><var>controllable_by_this_extension</var>: c
an be controlled by this extension", |
| 51 "type": "string", |
| 52 "enum": ["not_controllable", "controllable_by_this_extension
"] |
| 53 } |
| 54 } |
| 55 } |
| 56 ] |
| 57 } |
| 58 ] |
| 59 } |
| 60 ] |
| 61 } |
| 62 ] |
OLD | NEW |