| 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 * The possible contentSettingsTypes (the ones we currently support | 7 * All possible contentSettingsTypes that we currently support configuring in |
| 8 * configuring in the UI). This is a subset of the constants found under | 8 * the UI. Both top-level categories and content settings that represent |
| 9 * content_setttings_types.h and the values should be kept in sync. | 9 * individual permissions under Site Details should appear here. This is a |
| 10 * TODO(finnur): When all categories have been implemented we can just | 10 * subset of the constants found under content_setttings_types.h and the |
| 11 * generate these constants from content_setttings_types.h. | 11 * values should be kept in sync. |
| 12 * @enum {number} | 12 * @enum {number} |
| 13 */ | 13 */ |
| 14 var ContentSettingsTypes = { | 14 var ContentSettingsTypes = { |
| 15 COOKIES: 0, | 15 COOKIES: 0, |
| 16 IMAGES: 1, | 16 IMAGES: 1, |
| 17 JAVASCRIPT: 2, | 17 JAVASCRIPT: 2, |
| 18 POPUPS: 4, | 18 POPUPS: 4, |
| 19 GEOLOCATION: 5, | 19 GEOLOCATION: 5, |
| 20 NOTIFICATIONS: 6, | 20 NOTIFICATIONS: 6, |
| 21 FULLSCREEN: 8, | 21 FULLSCREEN: 8, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 46 */ | 46 */ |
| 47 var INVALID_CATEGORY_SUBTYPE = ''; | 47 var INVALID_CATEGORY_SUBTYPE = ''; |
| 48 | 48 |
| 49 return { | 49 return { |
| 50 ContentSettingsTypes: ContentSettingsTypes, | 50 ContentSettingsTypes: ContentSettingsTypes, |
| 51 PermissionValues: PermissionValues, | 51 PermissionValues: PermissionValues, |
| 52 ALL_SITES: ALL_SITES, | 52 ALL_SITES: ALL_SITES, |
| 53 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE, | 53 INVALID_CATEGORY_SUBTYPE: INVALID_CATEGORY_SUBTYPE, |
| 54 }; | 54 }; |
| 55 }); | 55 }); |
| OLD | NEW |