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

Side by Side Diff: chrome/browser/resources/settings/site_settings/constants.js

Issue 2673633003: MD Settings: Add Protected Content Content Settings exceptions (Closed)
Patch Set: Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 cr.exportPath('settings'); 5 cr.exportPath('settings');
6 6
7 /** 7 /**
8 * All possible contentSettingsTypes that we currently support configuring in 8 * All possible contentSettingsTypes that we currently support configuring in
9 * the UI. Both top-level categories and content settings that represent 9 * the UI. Both top-level categories and content settings that represent
10 * individual permissions under Site Details should appear here. This is a 10 * individual permissions under Site Details should appear here. This is a
(...skipping 10 matching lines...) Expand all
21 GEOLOCATION: 'location', 21 GEOLOCATION: 'location',
22 NOTIFICATIONS: 'notifications', 22 NOTIFICATIONS: 'notifications',
23 MIC: 'media-stream-mic', 23 MIC: 'media-stream-mic',
24 CAMERA: 'media-stream-camera', 24 CAMERA: 'media-stream-camera',
25 PROTOCOL_HANDLERS: 'register-protocol-handler', 25 PROTOCOL_HANDLERS: 'register-protocol-handler',
26 UNSANDBOXED_PLUGINS: 'ppapi-broker', 26 UNSANDBOXED_PLUGINS: 'ppapi-broker',
27 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads', 27 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads',
28 BACKGROUND_SYNC: 'background-sync', 28 BACKGROUND_SYNC: 'background-sync',
29 USB_DEVICES: 'usb-chooser-data', 29 USB_DEVICES: 'usb-chooser-data',
30 ZOOM_LEVELS: 'zoom-levels', 30 ZOOM_LEVELS: 'zoom-levels',
31 PROTECTED_CONTENT: 'protectedContent',
31 }; 32 };
32 33
33 /** 34 /**
34 * Contains the possible string values for a given contentSettingsType. 35 * Contains the possible string values for a given contentSettingsType.
35 * @enum {string} 36 * @enum {string}
36 * 37 *
37 * TODO(dschuyler): This should be rename as ContentSetting to maintain 38 * TODO(dschuyler): This should be rename as ContentSetting to maintain
38 * nomenclature with C++. 39 * nomenclature with C++.
39 */ 40 */
40 settings.PermissionValues = { 41 settings.PermissionValues = {
41 DEFAULT: 'default', 42 DEFAULT: 'default',
42 ALLOW: 'allow', 43 ALLOW: 'allow',
43 BLOCK: 'block', 44 BLOCK: 'block',
44 ASK: 'ask', 45 ASK: 'ask',
45 SESSION_ONLY: 'session_only', 46 SESSION_ONLY: 'session_only',
46 IMPORTANT_CONTENT: 'detect_important_content', 47 IMPORTANT_CONTENT: 'detect_important_content',
47 }; 48 };
48 49
49 /** 50 /**
50 * A category value to use for the All Sites list. 51 * A category value to use for the All Sites list.
51 * @const {string} 52 * @const {string}
52 */ 53 */
53 settings.ALL_SITES = 'all-sites'; 54 settings.ALL_SITES = 'all-sites';
54 55
55 /** 56 /**
56 * An invalid subtype value. 57 * An invalid subtype value.
57 * @const {string} 58 * @const {string}
58 */ 59 */
59 settings.INVALID_CATEGORY_SUBTYPE = ''; 60 settings.INVALID_CATEGORY_SUBTYPE = '';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698