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 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "ResourceIdentifier", | 10 "id": "ResourceIdentifier", |
11 "type": "object", | 11 "type": "object", |
12 "properties": { | 12 "properties": { |
13 "id": { | 13 "id": { |
14 "type": "string", | 14 "type": "string", |
15 "description": "The resource identifier for the given content type." | 15 "description": "The resource identifier for the given content type." |
16 }, | 16 }, |
17 "description": { | 17 "description": { |
18 "type": "string", | 18 "type": "string", |
19 "optional": true, | 19 "optional": true, |
20 "description": "A human readable description of the resource." | 20 "description": "A human readable description of the resource." |
21 } | 21 } |
22 }, | 22 }, |
23 "description": "The only content type using resource identifiers is $ref
:contentSettings.plugins. For more information, see <a href=\"contentSettings.ht
ml#resource-identifiers\">Resource Identifiers</a>." | 23 "description": "The only content type using resource identifiers is $ref
:contentSettings.plugins. For more information, see <a href=\"contentSettings.ht
ml#resource-identifiers\">Resource Identifiers</a>." |
24 }, | 24 }, |
25 { | 25 { |
26 "id": "ContentSetting", | 26 "id": "ContentSetting", |
| 27 "js_module": "ContentSetting", |
27 "type": "object", | 28 "type": "object", |
28 "functions": [ | 29 "functions": [ |
29 { | 30 { |
30 "name": "clear", | 31 "name": "clear", |
31 "type": "function", | 32 "type": "function", |
32 "description": "Clear all content setting rules set by this extensio
n.", | 33 "description": "Clear all content setting rules set by this extensio
n.", |
33 "parameters": [ | 34 "parameters": [ |
34 { | 35 { |
35 "name": "details", | 36 "name": "details", |
36 "type": "object", | 37 "type": "object", |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 "$ref": "ContentSetting", | 213 "$ref": "ContentSetting", |
213 "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.", | 214 "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.", |
214 "value": [ | 215 "value": [ |
215 "notifications", | 216 "notifications", |
216 {"type":"string", "enum": ["allow", "block", "ask"]} | 217 {"type":"string", "enum": ["allow", "block", "ask"]} |
217 ] | 218 ] |
218 } | 219 } |
219 } | 220 } |
220 } | 221 } |
221 ] | 222 ] |
OLD | NEW |