Chromium Code Reviews
|
| 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 that used by a $ref:ChromeSetting, except that the incognitoSpecific parameter will never be pr esent and the possible values of levelOfControl differ.", | |
|
Bernhard Bauer
2012/03/01 16:32:14
The "$ref" in here will not be expanded. You could
Bernhard Bauer
2012/03/01 16:32:14
Nit: Use some sort of markup for |incognitoSpecifi
Pam (message me for reviews)
2012/03/01 20:47:34
OK... How come it works in windows.json? ($ref:Tab
Bernhard Bauer
2012/03/02 09:23:58
Huh, it works. Whaddyaknow ;-)
| |
| 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": "any" | |
|
Bernhard Bauer
2012/03/01 16:32:14
The type can be 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 |