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 "description": "Use the <code>chrome.contentSettings</code> API to change se
ttings that control whether websites can use features such as cookies, JavaScrip
t, and plug-ins. More generally speaking, content settings allow you to customiz
e Chrome's behavior on a per-site basis instead of globally.", | 8 "description": "Use the <code>chrome.contentSettings</code> API to change se
ttings that control whether websites can use features such as cookies, JavaScrip
t, and plug-ins. More generally speaking, content settings allow you to customiz
e Chrome's behavior on a per-site basis instead of globally.", |
9 "compiler_options": { | 9 "compiler_options": { |
10 "generate_type_functions": true | 10 "generate_type_functions": true |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 ] | 222 ] |
223 }, | 223 }, |
224 "notifications": { | 224 "notifications": { |
225 "$ref": "ContentSetting", | 225 "$ref": "ContentSetting", |
226 "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 URL of the document which wants to show the notifica
tion. The secondary URL is not used.", | 226 "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 URL of the document which wants to show the notifica
tion. The secondary URL is not used.", |
227 "value": [ | 227 "value": [ |
228 "notifications", | 228 "notifications", |
229 {"type":"string", "enum": ["allow", "block", "ask"]} | 229 {"type":"string", "enum": ["allow", "block", "ask"]} |
230 ] | 230 ] |
231 }, | 231 }, |
| 232 "fullscreen": { |
| 233 "$ref": "ContentSetting", |
| 234 "description": "Whether to allow sites to toggle the fullscreen mode. On
e of<br><var>allow</var>: Allow sites to toggle the fullscreen mode,<br><var>ask
</var>: Ask when a site wants to toggle the fullscreen mode. <br>Default is <var
>ask</var>.<br>The primary URL is the URL of the document which requested to tog
gle the fullscreen mode. The secondary URL is the URL of the top-level frame (wh
ich may or may not differ from the requesting URL).", |
| 235 "value": [ |
| 236 "fullscreen", |
| 237 {"type":"string", "enum": ["allow", "ask"]} |
| 238 ] |
| 239 }, |
232 "mouselock": { | 240 "mouselock": { |
233 "$ref": "ContentSetting", | 241 "$ref": "ContentSetting", |
234 "description": "Whether to allow sites to disable the mouse cursor. One
of <br><var>allow</var>: Allow sites to disable the mouse cursor,<br><var>block<
/var>: Don't allow sites to disable the mouse cursor,<br><var>ask</var>: Ask whe
n a site wants to disable the mouse cursor. <br>Default is <var>ask</var>.<br>Th
e primary URL is the URL of the top-level frame. The secondary URL is not used."
, | 242 "description": "Whether to allow sites to disable the mouse cursor. One
of <br><var>allow</var>: Allow sites to disable the mouse cursor,<br><var>block<
/var>: Don't allow sites to disable the mouse cursor,<br><var>ask</var>: Ask whe
n a site wants to disable the mouse cursor. <br>Default is <var>ask</var>.<br>Th
e primary URL is the URL of the top-level frame. The secondary URL is not used."
, |
235 "value": [ | 243 "value": [ |
236 "mouselock", | 244 "mouselock", |
237 {"type":"string", "enum": ["allow", "block", "ask"]} | 245 {"type":"string", "enum": ["allow", "block", "ask"]} |
238 ] | 246 ] |
239 }, | 247 }, |
240 "microphone": { | 248 "microphone": { |
241 "$ref": "ContentSetting", | 249 "$ref": "ContentSetting", |
242 "description": "Whether to allow sites to access the microphone. One of
<br><var>allow</var>: Allow sites to access the microphone,<br><var>block</var>:
Don't allow sites to access the microphone,<br><var>ask</var>: Ask when a site
wants to access the microphone. <br>Default is <var>ask</var>.<br>The primary UR
L is the URL of the document which requested microphone access. The secondary UR
L is not used.", | 250 "description": "Whether to allow sites to access the microphone. One of
<br><var>allow</var>: Allow sites to access the microphone,<br><var>block</var>:
Don't allow sites to access the microphone,<br><var>ask</var>: Ask when a site
wants to access the microphone. <br>Default is <var>ask</var>.<br>The primary UR
L is the URL of the document which requested microphone access. The secondary UR
L is not used.", |
243 "value": [ | 251 "value": [ |
244 "media-stream-mic", | 252 "media-stream-mic", |
245 {"type":"string", "enum": ["allow", "block", "ask"]} | 253 {"type":"string", "enum": ["allow", "block", "ask"]} |
246 ] | 254 ] |
247 }, | 255 }, |
248 "camera": { | 256 "camera": { |
249 "$ref": "ContentSetting", | 257 "$ref": "ContentSetting", |
250 "description": "Whether to allow sites to access the camera. One of <br>
<var>allow</var>: Allow sites to access the camera,<br><var>block</var>: Don't a
llow sites to access the camera,<br><var>ask</var>: Ask when a site wants to acc
ess the camera. <br>Default is <var>ask</var>.<br>The primary URL is the URL of
the document which requested camera access. The secondary URL is not used.", | 258 "description": "Whether to allow sites to access the camera. One of <br>
<var>allow</var>: Allow sites to access the camera,<br><var>block</var>: Don't a
llow sites to access the camera,<br><var>ask</var>: Ask when a site wants to acc
ess the camera. <br>Default is <var>ask</var>.<br>The primary URL is the URL of
the document which requested camera access. The secondary URL is not used.", |
251 "value": [ | 259 "value": [ |
252 "media-stream-camera", | 260 "media-stream-camera", |
253 {"type":"string", "enum": ["allow", "block", "ask"]} | 261 {"type":"string", "enum": ["allow", "block", "ask"]} |
254 ] | 262 ] |
255 } | 263 } |
256 } | 264 } |
257 } | 265 } |
258 ] | 266 ] |
OLD | NEW |