Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/common/extensions/api/content_settings.json

Issue 2358893004: Deprecate chrome.contentSettings.{fullscreen,mouselock} extension API. (Closed)
Patch Set: Respond to review. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 plugins. More generally speaking, content settings allow you to customize 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 plugins. More generally speaking, content settings allow you to customize Chrome's behavior on a per-site basis instead of globally.",
9 "compiler_options": { "generate_type_functions": true }, 9 "compiler_options": { "generate_type_functions": true },
10 "types": [ 10 "types": [
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 "enum": ["allow", "block"] 204 "enum": ["allow", "block"]
205 }, 205 },
206 { 206 {
207 "id": "NotificationsContentSetting", 207 "id": "NotificationsContentSetting",
208 "type": "string", 208 "type": "string",
209 "enum": ["allow", "block", "ask"] 209 "enum": ["allow", "block", "ask"]
210 }, 210 },
211 { 211 {
212 "id": "FullscreenContentSetting", 212 "id": "FullscreenContentSetting",
213 "type": "string", 213 "type": "string",
214 "enum": ["allow", "ask"] 214 "enum": ["allow"]
215 }, 215 },
216 { 216 {
217 "id": "MouselockContentSetting", 217 "id": "MouselockContentSetting",
218 "type": "string", 218 "type": "string",
219 "enum": ["allow", "block", "ask"] 219 "enum": ["allow"]
220 }, 220 },
221 { 221 {
222 "id": "MicrophoneContentSetting", 222 "id": "MicrophoneContentSetting",
223 "type": "string", 223 "type": "string",
224 "enum": ["allow", "block", "ask"] 224 "enum": ["allow", "block", "ask"]
225 }, 225 },
226 { 226 {
227 "id": "CameraContentSetting", 227 "id": "CameraContentSetting",
228 "type": "string", 228 "type": "string",
229 "enum": ["allow", "block", "ask"] 229 "enum": ["allow", "block", "ask"]
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 "notifications": { 291 "notifications": {
292 "$ref": "ContentSetting", 292 "$ref": "ContentSetting",
293 "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.", 293 "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.",
294 "value": [ 294 "value": [
295 "notifications", 295 "notifications",
296 {"$ref":"NotificationsContentSetting"} 296 {"$ref":"NotificationsContentSetting"}
297 ] 297 ]
298 }, 298 },
299 "fullscreen": { 299 "fullscreen": {
300 "$ref": "ContentSetting", 300 "$ref": "ContentSetting",
301 "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).", 301 "description": "<i>Deprecated.</i> No longer has any effect. Fullscreen permission is now automatically granted for all sites. Value is always <var>allo w</var>.",
302 "value": [ 302 "value": [
303 "fullscreen", 303 "fullscreen",
304 {"$ref":"FullscreenContentSetting"} 304 {"$ref":"FullscreenContentSetting"}
305 ] 305 ]
306 }, 306 },
307 "mouselock": { 307 "mouselock": {
308 "$ref": "ContentSetting", 308 "$ref": "ContentSetting",
309 "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." , 309 "description": "<i>Deprecated.</i> No longer has any effect. Mouse lock permission is now automatically granted for all sites. Value is always <var>allo w</var>.",
310 "value": [ 310 "value": [
311 "mouselock", 311 "mouselock",
312 {"$ref":"MouselockContentSetting"} 312 {"$ref":"MouselockContentSetting"}
313 ] 313 ]
314 }, 314 },
315 "microphone": { 315 "microphone": {
316 "$ref": "ContentSetting", 316 "$ref": "ContentSetting",
317 "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.<br>NOTE: The 'allow' setting is not valid if both patterns are '< all_urls>'.", 317 "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.<br>NOTE: The 'allow' setting is not valid if both patterns are '< all_urls>'.",
318 "value": [ 318 "value": [
319 "media-stream-mic", 319 "media-stream-mic",
(...skipping 20 matching lines...) Expand all
340 "$ref": "ContentSetting", 340 "$ref": "ContentSetting",
341 "description": "Whether to allow sites to download multiple files automa tically. One of <br><var>allow</var>: Allow sites to download multiple files aut omatically,<br><var>block</var>: Don't allow sites to download multiple files au tomatically,<br><var>ask</var>: Ask when a site wants to download files automati cally after the first file. <br>Default is <var>ask</var>.<br>The primary URL is the URL of the top-level frame. The secondary URL is not used.", 341 "description": "Whether to allow sites to download multiple files automa tically. One of <br><var>allow</var>: Allow sites to download multiple files aut omatically,<br><var>block</var>: Don't allow sites to download multiple files au tomatically,<br><var>ask</var>: Ask when a site wants to download files automati cally after the first file. <br>Default is <var>ask</var>.<br>The primary URL is the URL of the top-level frame. The secondary URL is not used.",
342 "value": [ 342 "value": [
343 "automatic-downloads", 343 "automatic-downloads",
344 {"$ref":"MultipleAutomaticDownloadsContentSetting"} 344 {"$ref":"MultipleAutomaticDownloadsContentSetting"}
345 ] 345 ]
346 } 346 }
347 } 347 }
348 } 348 }
349 ] 349 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698