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": "contentSettings", | 7 "namespace": "contentSettings", |
8 "compiler_options": { | 8 "compiler_options": { |
9 "generate_type_functions": true | 9 "generate_type_functions": true |
10 }, | 10 }, |
(...skipping 24 matching lines...) Expand all Loading... |
35 "description": "Clear all content setting rules set by this extensio
n.", | 35 "description": "Clear all content setting rules set by this extensio
n.", |
36 "parameters": [ | 36 "parameters": [ |
37 { | 37 { |
38 "name": "details", | 38 "name": "details", |
39 "type": "object", | 39 "type": "object", |
40 "properties": { | 40 "properties": { |
41 "scope": { | 41 "scope": { |
42 "type": "string", | 42 "type": "string", |
43 "enum": ["regular", "incognito_session_only"], | 43 "enum": ["regular", "incognito_session_only"], |
44 "optional": true, | 44 "optional": true, |
45 "description": "Where to set the setting (default: regular).
One of<br><var>regular</var>: setting for regular profile (which is inherited b
y the incognito profile if not overridden elsewhere),<br><var>incognito_session_
only</var>: setting for incognito profile that can only be set during an incogni
to session and is deleted when the incognito session ends (overrides regular set
tings)." | 45 "description": "Where to clear the setting (default: regular
). One of<br><var>regular</var>: setting for regular profile (which is inherited
by the incognito profile if not overridden elsewhere),<br><var>incognito_sessio
n_only</var>: setting for incognito profile that can only be set during an incog
nito session and is deleted when the incognito session ends (overrides regular s
ettings)." |
46 } | 46 } |
47 } | 47 } |
48 }, | 48 }, |
49 { | 49 { |
50 "type": "function", | 50 "type": "function", |
51 "name": "callback", | 51 "name": "callback", |
52 "optional": true, | 52 "optional": true, |
53 "parameters": [] | 53 "parameters": [] |
54 } | 54 } |
55 ] | 55 ] |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 "description": "The resource identifier for the content type
." | 126 "description": "The resource identifier for the content type
." |
127 }, | 127 }, |
128 "setting": { | 128 "setting": { |
129 "type": "any", | 129 "type": "any", |
130 "description": "The setting applied by this rule. See the de
scription of the individual ContentSetting objects for the possible values." | 130 "description": "The setting applied by this rule. See the de
scription of the individual ContentSetting objects for the possible values." |
131 }, | 131 }, |
132 "scope": { | 132 "scope": { |
133 "type": "string", | 133 "type": "string", |
134 "enum": ["regular", "incognito_session_only"], | 134 "enum": ["regular", "incognito_session_only"], |
135 "optional": true, | 135 "optional": true, |
136 "description": "Where to clear the setting (default: regular
). One of<br><var>regular</var>: setting for regular profile (which is inherited
by the incognito profile if not overridden elsewhere),<br><var>incognito_sessio
n_only</var>: setting for incognito profile that can only be set during an incog
nito session and is deleted when the incognito session ends (overrides regular s
ettings)." | 136 "description": "Where to set the setting (default: regular).
One of<br><var>regular</var>: setting for regular profile (which is inherited b
y the incognito profile if not overridden elsewhere),<br><var>incognito_session_
only</var>: setting for incognito profile that can only be set during an incogni
to session and is deleted when the incognito session ends (overrides regular set
tings)." |
137 } | 137 } |
138 } | 138 } |
139 }, | 139 }, |
140 { | 140 { |
141 "type": "function", | 141 "type": "function", |
142 "name": "callback", | 142 "name": "callback", |
143 "optional": true, | 143 "optional": true, |
144 "parameters": [] | 144 "parameters": [] |
145 } | 145 } |
146 ] | 146 ] |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 "$ref": "ContentSetting", | 215 "$ref": "ContentSetting", |
216 "description": "Whether to allow sites to show desktop notifications. On
e of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>blo
ck</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: As
k when a site wants to show desktop notifications. <br>Default is <var>ask</var>
.<br>The primary URL is the main-frame URL. The secondary URL is not used.", | 216 "description": "Whether to allow sites to show desktop notifications. On
e of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>blo
ck</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: As
k when a site wants to show desktop notifications. <br>Default is <var>ask</var>
.<br>The primary URL is the main-frame URL. The secondary URL is not used.", |
217 "value": [ | 217 "value": [ |
218 "notifications", | 218 "notifications", |
219 {"type":"string", "enum": ["allow", "block", "ask"]} | 219 {"type":"string", "enum": ["allow", "block", "ask"]} |
220 ] | 220 ] |
221 } | 221 } |
222 } | 222 } |
223 } | 223 } |
224 ] | 224 ] |
OLD | NEW |