OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 [ | |
6 { | |
7 "namespace": "managedModePrivate", | |
8 "nodoc": true, | |
9 "functions": [ | |
10 { | |
11 "name": "enter", | |
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.", | |
14 "parameters": [ | |
15 { | |
16 "type": "function", | |
17 "name": "callback", | |
18 "optional": true, | |
19 "parameters": [ | |
20 { | |
21 "name": "result", | |
22 "type": "object", | |
23 "description": "The result of the attempt to enter managed mode.
", | |
24 "properties": { | |
25 "success": { | |
26 "description": "True if managed mode was entered successfull
y, false if the user cancelled the confirmation.", | |
27 "type": "boolean" | |
28 } | |
29 } | |
30 } | |
31 ] | |
32 } | |
33 ] | |
34 }, | |
35 { | |
36 "name": "get", | |
37 "type": "function", | |
38 "description": "Gets the value of the setting describing whether managed
mode is in effect.", | |
39 "parameters": [ | |
40 { | |
41 "type": "function", | |
42 "name": "callback", | |
43 "parameters": [ | |
44 { | |
45 "name": "details", | |
46 "type": "object", | |
47 "description": "Details of the currently effective value.", | |
48 "properties": { | |
49 "value": { | |
50 "description": "The value of the setting.", | |
51 "type": "boolean" | |
52 } | |
53 } | |
54 } | |
55 ] | |
56 } | |
57 ] | |
58 } | |
59 ] | |
60 } | |
61 ] | |
OLD | NEW |