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

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

Issue 843413003: Add `chrome.contentSettings.location`. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo. Created 5 years, 11 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 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 ] 190 ]
191 }, 191 },
192 "javascript": { 192 "javascript": {
193 "$ref": "ContentSetting", 193 "$ref": "ContentSetting",
194 "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.", 194 "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.",
195 "value": [ 195 "value": [
196 "javascript", 196 "javascript",
197 {"type":"string", "enum": ["allow", "block"]} 197 {"type":"string", "enum": ["allow", "block"]}
198 ] 198 ]
199 }, 199 },
200 "location": {
201 "$ref": "ContentSetting",
202 "description": "Whether to allow Geolocation. One of <br><var>allow</var >: Allow sites to track your physical location,<br><var>block</var>: Don't allow sites to track your physical location,<br><var>ask</var>: Ask before allowing s ites to track your physical location. <br>Default is <var>ask</var>.<br>The prim ary URL is the main-frame URL. The secondary URL is not used.",
Bernhard Bauer 2015/01/12 14:35:58 I think the primary URL is the requesting iframe,
203 "value": [
204 "location",
205 {"type":"string", "enum": ["allow", "block", "ask"]}
206 ]
207 },
200 "plugins": { 208 "plugins": {
201 "$ref": "ContentSetting", 209 "$ref": "ContentSetting",
202 "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.", 210 "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.",
203 "value": [ 211 "value": [
204 "plugins", 212 "plugins",
205 {"type":"string", "enum": ["allow", "block"]} 213 {"type":"string", "enum": ["allow", "block"]}
206 ] 214 ]
207 }, 215 },
208 "popups": { 216 "popups": {
209 "$ref": "ContentSetting", 217 "$ref": "ContentSetting",
210 "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.", 218 "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.",
211 "value": [ 219 "value": [
212 "popups", 220 "popups",
213 {"type":"string", "enum": ["allow", "block"]} 221 {"type":"string", "enum": ["allow", "block"]}
214 ] 222 ]
215 }, 223 },
216 "notifications": { 224 "notifications": {
217 "$ref": "ContentSetting", 225 "$ref": "ContentSetting",
218 "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.", 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 main-frame URL. The secondary URL is not used.",
219 "value": [ 227 "value": [
220 "notifications", 228 "notifications",
221 {"type":"string", "enum": ["allow", "block", "ask"]} 229 {"type":"string", "enum": ["allow", "block", "ask"]}
222 ] 230 ]
223 } 231 }
224 } 232 }
225 } 233 }
226 ] 234 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698