| 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 |
| 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 COOKIES: 'cookies', | 16 COOKIES: 'cookies', |
| 17 IMAGES: 'images', | 17 IMAGES: 'images', |
| 18 JAVASCRIPT: 'javascript', | 18 JAVASCRIPT: 'javascript', |
| 19 PLUGINS: 'plugins', | 19 PLUGINS: 'plugins', |
| 20 POPUPS: 'popups', | 20 POPUPS: 'popups', |
| 21 GEOLOCATION: 'location', | 21 GEOLOCATION: 'location', |
| 22 NOTIFICATIONS: 'notifications', | 22 NOTIFICATIONS: 'notifications', |
| 23 FULLSCREEN: 'fullscreen', | |
| 24 MIC: 'media-stream-mic', | 23 MIC: 'media-stream-mic', |
| 25 CAMERA: 'media-stream-camera', | 24 CAMERA: 'media-stream-camera', |
| 26 PROTOCOL_HANDLERS: 'register-protocol-handler', | 25 PROTOCOL_HANDLERS: 'register-protocol-handler', |
| 27 UNSANDBOXED_PLUGINS: 'ppapi-broker', | 26 UNSANDBOXED_PLUGINS: 'ppapi-broker', |
| 28 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads', | 27 AUTOMATIC_DOWNLOADS: 'multiple-automatic-downloads', |
| 29 KEYGEN: 'keygen', | 28 KEYGEN: 'keygen', |
| 30 BACKGROUND_SYNC: 'background-sync', | 29 BACKGROUND_SYNC: 'background-sync', |
| 31 USB_DEVICES: 'usb-chooser-data', | 30 USB_DEVICES: 'usb-chooser-data', |
| 32 ZOOM_LEVELS: 'zoom-levels', | 31 ZOOM_LEVELS: 'zoom-levels', |
| 33 }; | 32 }; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 52 * A category value to use for the All Sites list. | 51 * A category value to use for the All Sites list. |
| 53 * @const {string} | 52 * @const {string} |
| 54 */ | 53 */ |
| 55 settings.ALL_SITES = 'all-sites'; | 54 settings.ALL_SITES = 'all-sites'; |
| 56 | 55 |
| 57 /** | 56 /** |
| 58 * An invalid subtype value. | 57 * An invalid subtype value. |
| 59 * @const {string} | 58 * @const {string} |
| 60 */ | 59 */ |
| 61 settings.INVALID_CATEGORY_SUBTYPE = ''; | 60 settings.INVALID_CATEGORY_SUBTYPE = ''; |
| OLD | NEW |