| 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.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 Loading... |
| 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 = ''; |
| OLD | NEW |