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

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

Issue 2131953002: Site Settings Desktop: Implement protocol handler section. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 5 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.define('settings', function() { 5 cr.define('settings', function() {
6 /** 6 /**
7 * All possible contentSettingsTypes that we currently support configuring in 7 * All possible contentSettingsTypes that we currently support configuring in
8 * the UI. Both top-level categories and content settings that represent 8 * the UI. Both top-level categories and content settings that represent
9 * individual permissions under Site Details should appear here. This is a 9 * individual permissions under Site Details should appear here. This is a
10 * subset of the constants found in site_settings_helper.cc and the values 10 * subset of the constants found in site_settings_helper.cc and the values
11 * should be kept in sync. 11 * should be kept in sync.
12 * @enum {string} 12 * @enum {string}
13 */ 13 */
14 var ContentSettingsTypes = { 14 var ContentSettingsTypes = {
15 COOKIES: 'cookies', 15 COOKIES: 'cookies',
16 IMAGES: 'images', 16 IMAGES: 'images',
17 JAVASCRIPT: 'javascript', 17 JAVASCRIPT: 'javascript',
18 PLUGINS: 'plugins', 18 PLUGINS: 'plugins',
19 POPUPS: 'popups', 19 POPUPS: 'popups',
20 GEOLOCATION: 'location', 20 GEOLOCATION: 'location',
21 NOTIFICATIONS: 'notifications', 21 NOTIFICATIONS: 'notifications',
22 FULLSCREEN: 'fullscreen', 22 FULLSCREEN: 'fullscreen',
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 UNSANDBOXED_PLUGINS: 'ppapi-broker', 26 UNSANDBOXED_PLUGINS: 'ppapi-broker',
26 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads', 27 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads',
27 KEYGEN: 'keygen', 28 KEYGEN: 'keygen',
28 BACKGROUND_SYNC: 'background-sync', 29 BACKGROUND_SYNC: 'background-sync',
29 }; 30 };
30 31
31 /** 32 /**
32 * Contains the possible string values for a given contentSettingsType. 33 * Contains the possible string values for a given contentSettingsType.
33 * @enum {string} 34 * @enum {string}
34 */ 35 */
(...skipping 18 matching lines...) Expand all
53 */ 54 */
54 var INVALID_CATEGORY_SUBTYPE = ''; 55 var INVALID_CATEGORY_SUBTYPE = '';
55 56
56 return { 57 return {
57 ContentSettingsTypes: ContentSettingsTypes, 58 ContentSettingsTypes: ContentSettingsTypes,
58 PermissionValues: PermissionValues, 59 PermissionValues: PermissionValues,
59 ALL_SITES: ALL_SITES, 60 ALL_SITES: ALL_SITES,
60 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE, 61 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE,
61 }; 62 };
62 }); 63 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698