OLD | NEW |
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 |
(...skipping 10 matching lines...) Expand all Loading... |
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 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 KEYGEN: 'keygen', | 28 KEYGEN: 'keygen', |
29 BACKGROUND_SYNC: 'background-sync', | 29 BACKGROUND_SYNC: 'background-sync', |
30 USB_DEVICES: 'usb-chooser-data', | 30 USB_DEVICES: 'usb-chooser-data', |
| 31 ZOOM_LEVELS: 'zoom-levels', |
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 var PermissionValues = { | 38 var PermissionValues = { |
38 DEFAULT: 'default', | 39 DEFAULT: 'default', |
39 ALLOW: 'allow', | 40 ALLOW: 'allow', |
40 BLOCK: 'block', | 41 BLOCK: 'block', |
(...skipping 14 matching lines...) Expand all Loading... |
55 */ | 56 */ |
56 var INVALID_CATEGORY_SUBTYPE = ''; | 57 var INVALID_CATEGORY_SUBTYPE = ''; |
57 | 58 |
58 return { | 59 return { |
59 ContentSettingsTypes: ContentSettingsTypes, | 60 ContentSettingsTypes: ContentSettingsTypes, |
60 PermissionValues: PermissionValues, | 61 PermissionValues: PermissionValues, |
61 ALL_SITES: ALL_SITES, | 62 ALL_SITES: ALL_SITES, |
62 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE, | 63 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE, |
63 }; | 64 }; |
64 }); | 65 }); |
OLD | NEW |