OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "unprivileged": true, | 4 "unprivileged": true, |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "MessageSender", | 7 "id": "MessageSender", |
8 "type": "object", | 8 "type": "object", |
9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
10 "properties": { | 10 "properties": { |
(...skipping 8174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8185 "id": { | 8185 "id": { |
8186 "type": "string", | 8186 "type": "string", |
8187 "description": "The resource identifier for the given content type." | 8187 "description": "The resource identifier for the given content type." |
8188 }, | 8188 }, |
8189 "description": { | 8189 "description": { |
8190 "type": "string", | 8190 "type": "string", |
8191 "optional": true, | 8191 "optional": true, |
8192 "description": "A human readable description of the resource." | 8192 "description": "A human readable description of the resource." |
8193 } | 8193 } |
8194 }, | 8194 }, |
8195 "description": "The only content type using resource identifiers is <var
>plugins</var>. Using a resource identifier allows an extension to specify conte
nt settings applying only to a specific plug-in. If no rule for the specific plu
g-in is found, the rules without resource identifiers are applied." | 8195 "description": "The only content type using resource identifiers is <a h
ref=\"contentSettings.html#property-plugins\"><var>plugins</var></a>. For more i
nformation, see <a href=\"contentSettings.html#resource-identifiers\">Resource I
dentifiers</a>." |
8196 }, | 8196 }, |
8197 { | 8197 { |
8198 "id": "ContentSetting", | 8198 "id": "ContentSetting", |
8199 "type": "object", | 8199 "type": "object", |
8200 "functions": [ | 8200 "functions": [ |
8201 { | 8201 { |
8202 "name": "clear", | 8202 "name": "clear", |
8203 "type": "function", | 8203 "type": "function", |
8204 "description": "Clear all content setting rules set by this extensio
n.", | 8204 "description": "Clear all content setting rules set by this extensio
n.", |
8205 "parameters": [ | 8205 "parameters": [ |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8275 "name": "set", | 8275 "name": "set", |
8276 "type": "function", | 8276 "type": "function", |
8277 "description": "Applies a new content setting rule.", | 8277 "description": "Applies a new content setting rule.", |
8278 "parameters": [ | 8278 "parameters": [ |
8279 { | 8279 { |
8280 "name": "details", | 8280 "name": "details", |
8281 "type": "object", | 8281 "type": "object", |
8282 "properties": { | 8282 "properties": { |
8283 "primaryPattern": { | 8283 "primaryPattern": { |
8284 "type": "string", | 8284 "type": "string", |
8285 "description": "The pattern for the primary URL. For details
on the format of a pattern, see <a href='match_patterns.html'>Match Patterns</a
>." | 8285 "description": "The pattern for the primary URL. For details
on the format of a pattern, see <a href='contentSettings.html#patterns'>Content
Setting Patterns</a>." |
8286 }, | 8286 }, |
8287 "secondaryPattern": { | 8287 "secondaryPattern": { |
8288 "type": "string", | 8288 "type": "string", |
8289 "description": "The pattern for the secondary URL. Defaults
to matching all URLs. For details on the format of a pattern, see <a href='match
_patterns.html'>Match Patterns</a>.", | 8289 "description": "The pattern for the secondary URL. Defaults
to matching all URLs. For details on the format of a pattern, see <a href='conte
ntSettings.html#patterns'>Content Setting Patterns</a>.", |
8290 "optional": true | 8290 "optional": true |
8291 }, | 8291 }, |
8292 "resourceIdentifier": { | 8292 "resourceIdentifier": { |
8293 "$ref": "ResourceIdentifier", | 8293 "$ref": "ResourceIdentifier", |
8294 "optional": true, | 8294 "optional": true, |
8295 "description": "The resource identifier for the content type
." | 8295 "description": "The resource identifier for the content type
." |
8296 }, | 8296 }, |
8297 "setting": { | 8297 "setting": { |
8298 "type": "any", | 8298 "type": "any", |
8299 "description": "The setting applied by this rule. See the de
scription of the individual ContentSetting objects for the possible values." | 8299 "description": "The setting applied by this rule. See the de
scription of the individual ContentSetting objects for the possible values." |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8334 ] | 8334 ] |
8335 } | 8335 } |
8336 ] | 8336 ] |
8337 } | 8337 } |
8338 ] | 8338 ] |
8339 } | 8339 } |
8340 ], | 8340 ], |
8341 "properties": { | 8341 "properties": { |
8342 "cookies": { | 8342 "cookies": { |
8343 "$ref": "ContentSetting", | 8343 "$ref": "ContentSetting", |
8344 "description": "Whether to allow cookies and other local data to be set
by websites. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Bl
ock cookies,<br><var>session_only</var>: Accept cookies only for the current ses
sion. Default is <var>allow</var>.<br>The primary URL is the URL representing th
e cookie origin. The secondary URL is the URL of the top-level frame.", | 8344 "description": "Whether to allow cookies and other local data to be set
by websites. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Bl
ock cookies,<br><var>session_only</var>: Accept cookies only for the current ses
sion. <br>Default is <var>allow</var>.<br>The primary URL is the URL representin
g the cookie origin. The secondary URL is the URL of the top-level frame.", |
8345 "value": [ | 8345 "value": [ |
8346 "cookies", | 8346 "cookies", |
8347 {"type":"string", "enum": ["allow", "block", "session_only"]} | 8347 {"type":"string", "enum": ["allow", "block", "session_only"]} |
8348 ] | 8348 ] |
8349 }, | 8349 }, |
8350 "images": { | 8350 "images": { |
8351 "$ref": "ContentSetting", | 8351 "$ref": "ContentSetting", |
8352 "description": "Whether to show images. One of<br><var>allow</var>: Show
images,<br><var>block</var>: Don't show images. Default is <var>allow</var>.<br
>The primary URL is the main-frame URL. The secondary URL is not used.", | 8352 "description": "Whether to show images. One of<br><var>allow</var>: Show
images,<br><var>block</var>: Don't show images. <br>Default is <var>allow</var>
.<br>The primary URL is the main-frame URL. The secondary URL is not used.", |
8353 "value": [ | 8353 "value": [ |
8354 "images", | 8354 "images", |
8355 {"type":"string", "enum": ["allow", "block"]} | 8355 {"type":"string", "enum": ["allow", "block"]} |
8356 ] | 8356 ] |
8357 }, | 8357 }, |
8358 "javascript": { | 8358 "javascript": { |
8359 "$ref": "ContentSetting", | 8359 "$ref": "ContentSetting", |
8360 "description": "Whether to run Javascript. One of<br><var>allow</var>: R
un Javascript,<br><var>block</var>: Don't run Javascript. Default is <var>allow<
/var>.<br>The primary URL is the main-frame URL. The secondary URL is not used."
, | 8360 "description": "Whether to run JavaScript. One of<br><var>allow</var>: R
un JavaScript,<br><var>block</var>: Don't run JavaScript. <br>Default is <var>al
low</var>.<br>The primary URL is the main-frame URL. The secondary URL is not us
ed.", |
8361 "value": [ | 8361 "value": [ |
8362 "javascript", | 8362 "javascript", |
8363 {"type":"string", "enum": ["allow", "block"]} | 8363 {"type":"string", "enum": ["allow", "block"]} |
8364 ] | 8364 ] |
8365 }, | 8365 }, |
8366 "plugins": { | 8366 "plugins": { |
8367 "$ref": "ContentSetting", | 8367 "$ref": "ContentSetting", |
8368 "description": "Whether to run plug-ins. One of<br><var>allow</var>: Run
plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically.
Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The secon
dary URL is not used.", | 8368 "description": "Whether to run plug-ins. One of<br><var>allow</var>: Run
plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically.
<br>Default is <var>allow</var>.<br>The primary URL is the main-frame URL. The s
econdary URL is not used.", |
8369 "value": [ | 8369 "value": [ |
8370 "plugins", | 8370 "plugins", |
8371 {"type":"string", "enum": ["allow", "block"]} | 8371 {"type":"string", "enum": ["allow", "block"]} |
8372 ] | 8372 ] |
8373 }, | 8373 }, |
8374 "popups": { | 8374 "popups": { |
8375 "$ref": "ContentSetting", | 8375 "$ref": "ContentSetting", |
8376 "description": "Whether to allow sites to show pop-ups. One of<br><var>a
llow</var>: Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites
to show pop-ups. Default is <var>block</var>.<br>The primary URL is the main-fra
me URL. The secondary URL is not used.", | 8376 "description": "Whether to allow sites to show pop-ups. One of<br><var>a
llow</var>: Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites
to show pop-ups. <br>Default is <var>block</var>.<br>The primary URL is the main
-frame URL. The secondary URL is not used.", |
8377 "value": [ | 8377 "value": [ |
8378 "popups", | 8378 "popups", |
8379 {"type":"string", "enum": ["allow", "block"]} | 8379 {"type":"string", "enum": ["allow", "block"]} |
8380 ] | 8380 ] |
8381 }, | 8381 }, |
8382 "notifications": { | 8382 "notifications": { |
8383 "$ref": "ContentSetting", | 8383 "$ref": "ContentSetting", |
8384 "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. Default is <var>ask</var>.<br
>The primary URL is the main-frame URL. The secondary URL is not used.", | 8384 "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.", |
8385 "value": [ | 8385 "value": [ |
8386 "notifications", | 8386 "notifications", |
8387 {"type":"string", "enum": ["allow", "block", "ask"]} | 8387 {"type":"string", "enum": ["allow", "block", "ask"]} |
8388 ] | 8388 ] |
8389 } | 8389 } |
8390 } | 8390 } |
8391 }, | 8391 }, |
8392 { | 8392 { |
8393 "namespace": "experimental.privacy", | 8393 "namespace": "experimental.privacy", |
8394 "properties": { | 8394 "properties": { |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9083 "type": "array", | 9083 "type": "array", |
9084 "items": { "$ref": "mimeTypeEnum" } | 9084 "items": { "$ref": "mimeTypeEnum" } |
9085 } | 9085 } |
9086 ] | 9086 ] |
9087 } | 9087 } |
9088 ] | 9088 ] |
9089 } | 9089 } |
9090 ] | 9090 ] |
9091 } | 9091 } |
9092 ] | 9092 ] |
OLD | NEW |