| 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 14 matching lines...) Expand all Loading... |
| 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 MIDI_DEVICES: 'midi-sysex', | 29 MIDI_DEVICES: 'midi-sysex', |
| 30 USB_DEVICES: 'usb-chooser-data', | 30 USB_DEVICES: 'usb-chooser-data', |
| 31 ZOOM_LEVELS: 'zoom-levels', | 31 ZOOM_LEVELS: 'zoom-levels', |
| 32 // <if expr="chromeos"> | 32 // <if expr="chromeos"> |
| 33 PROTECTED_CONTENT: 'protectedContent', | 33 PROTECTED_CONTENT: 'protectedContent', |
| 34 // </if> | 34 // </if> |
| 35 SUBRESOURCE_FILTER: 'subresource-filter', |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 /** | 38 /** |
| 38 * Contains the possible string values for a given contentSettingsType. | 39 * Contains the possible string values for a given contentSettingsType. |
| 39 * @enum {string} | 40 * @enum {string} |
| 40 * | 41 * |
| 41 * TODO(dschuyler): This should be rename as ContentSetting to maintain | 42 * TODO(dschuyler): This should be rename as ContentSetting to maintain |
| 42 * nomenclature with C++. | 43 * nomenclature with C++. |
| 43 */ | 44 */ |
| 44 settings.PermissionValues = { | 45 settings.PermissionValues = { |
| 45 DEFAULT: 'default', | 46 DEFAULT: 'default', |
| 46 ALLOW: 'allow', | 47 ALLOW: 'allow', |
| 47 BLOCK: 'block', | 48 BLOCK: 'block', |
| 48 ASK: 'ask', | 49 ASK: 'ask', |
| 49 SESSION_ONLY: 'session_only', | 50 SESSION_ONLY: 'session_only', |
| 50 IMPORTANT_CONTENT: 'detect_important_content', | 51 IMPORTANT_CONTENT: 'detect_important_content', |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 /** | 54 /** |
| 54 * A category value to use for the All Sites list. | 55 * A category value to use for the All Sites list. |
| 55 * @const {string} | 56 * @const {string} |
| 56 */ | 57 */ |
| 57 settings.ALL_SITES = 'all-sites'; | 58 settings.ALL_SITES = 'all-sites'; |
| 58 | 59 |
| 59 /** | 60 /** |
| 60 * An invalid subtype value. | 61 * An invalid subtype value. |
| 61 * @const {string} | 62 * @const {string} |
| 62 */ | 63 */ |
| 63 settings.INVALID_CATEGORY_SUBTYPE = ''; | 64 settings.INVALID_CATEGORY_SUBTYPE = ''; |
| OLD | NEW |