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

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: update tests 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 // <if expr="chromeos">
32 PROTECTED_CONTENT: 'protectedContent',
33 // </if>
31 }; 34 };
32 35
33 /** 36 /**
34 * Contains the possible string values for a given contentSettingsType. 37 * Contains the possible string values for a given contentSettingsType.
35 * @enum {string} 38 * @enum {string}
36 * 39 *
37 * TODO(dschuyler): This should be rename as ContentSetting to maintain 40 * TODO(dschuyler): This should be rename as ContentSetting to maintain
38 * nomenclature with C++. 41 * nomenclature with C++.
39 */ 42 */
40 settings.PermissionValues = { 43 settings.PermissionValues = {
41 DEFAULT: 'default', 44 DEFAULT: 'default',
42 ALLOW: 'allow', 45 ALLOW: 'allow',
43 BLOCK: 'block', 46 BLOCK: 'block',
44 ASK: 'ask', 47 ASK: 'ask',
45 SESSION_ONLY: 'session_only', 48 SESSION_ONLY: 'session_only',
46 IMPORTANT_CONTENT: 'detect_important_content', 49 IMPORTANT_CONTENT: 'detect_important_content',
47 }; 50 };
48 51
49 /** 52 /**
50 * A category value to use for the All Sites list. 53 * A category value to use for the All Sites list.
51 * @const {string} 54 * @const {string}
52 */ 55 */
53 settings.ALL_SITES = 'all-sites'; 56 settings.ALL_SITES = 'all-sites';
54 57
55 /** 58 /**
56 * An invalid subtype value. 59 * An invalid subtype value.
57 * @const {string} 60 * @const {string}
58 */ 61 */
59 settings.INVALID_CATEGORY_SUBTYPE = ''; 62 settings.INVALID_CATEGORY_SUBTYPE = '';
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/test/data/webui/settings/site_list_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698