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

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

Issue 2484423004: [MD settings] settings for pdf documents (Closed)
Patch Set: touch ups Created 4 years, 1 month 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
11 * subset of the constants found in site_settings_helper.cc and the values 11 * subset of the constants found in site_settings_helper.cc and the values
12 * should be kept in sync. 12 * should be kept in sync.
13 * @enum {string} 13 * @enum {string}
14 */ 14 */
15 settings.ContentSettingsTypes = { 15 settings.ContentSettingsTypes = {
16 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads',
17 BACKGROUND_SYNC: 'background-sync',
18 CAMERA: 'media-stream-camera',
16 COOKIES: 'cookies', 19 COOKIES: 'cookies',
20 FULLSCREEN: 'fullscreen',
21 GEOLOCATION: 'location',
17 IMAGES: 'images', 22 IMAGES: 'images',
18 JAVASCRIPT: 'javascript', 23 JAVASCRIPT: 'javascript',
24 KEYGEN: 'keygen',
25 MIC: 'media-stream-mic',
26 NOTIFICATIONS: 'notifications',
27 PDF_DOCUMENTS: 'pdf-documents',
19 PLUGINS: 'plugins', 28 PLUGINS: 'plugins',
20 POPUPS: 'popups', 29 POPUPS: 'popups',
21 GEOLOCATION: 'location',
22 NOTIFICATIONS: 'notifications',
23 FULLSCREEN: 'fullscreen',
24 MIC: 'media-stream-mic',
25 CAMERA: 'media-stream-camera',
26 PROTOCOL_HANDLERS: 'register-protocol-handler', 30 PROTOCOL_HANDLERS: 'register-protocol-handler',
27 UNSANDBOXED_PLUGINS: 'ppapi-broker', 31 UNSANDBOXED_PLUGINS: 'ppapi-broker',
28 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads',
29 KEYGEN: 'keygen',
30 BACKGROUND_SYNC: 'background-sync',
31 USB_DEVICES: 'usb-chooser-data', 32 USB_DEVICES: 'usb-chooser-data',
32 ZOOM_LEVELS: 'zoom-levels', 33 ZOOM_LEVELS: 'zoom-levels',
33 }; 34 };
34 35
35 /** 36 /**
36 * Contains the possible string values for a given contentSettingsType. 37 * Contains the possible string values for a given contentSettingsType.
37 * @enum {string} 38 * @enum {string}
38 * 39 *
39 * TODO(dschuyler): This should be rename as ContentSetting to maintain 40 * TODO(dschuyler): This should be rename as ContentSetting to maintain
40 * nomenclature with C++. 41 * nomenclature with C++.
(...skipping 11 matching lines...) Expand all
52 * A category value to use for the All Sites list. 53 * A category value to use for the All Sites list.
53 * @const {string} 54 * @const {string}
54 */ 55 */
55 settings.ALL_SITES = 'all-sites'; 56 settings.ALL_SITES = 'all-sites';
56 57
57 /** 58 /**
58 * An invalid subtype value. 59 * An invalid subtype value.
59 * @const {string} 60 * @const {string}
60 */ 61 */
61 settings.INVALID_CATEGORY_SUBTYPE = ''; 62 settings.INVALID_CATEGORY_SUBTYPE = '';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698