| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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('options.contentSettings', function() { | 5 cr.define('options.contentSettings', function() { |
| 6 /** @const */ var ControlledSettingIndicator = | 6 /** @const */ var ControlledSettingIndicator = |
| 7 options.ControlledSettingIndicator; | 7 options.ControlledSettingIndicator; |
| 8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; | 8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; |
| 9 /** @const */ var InlineEditableItem = options.InlineEditableItem; | 9 /** @const */ var InlineEditableItem = options.InlineEditableItem; |
| 10 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 10 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Returns whether exceptions list for the type is editable. | 13 * Returns whether exceptions list for the type is editable. |
| 14 * | 14 * |
| 15 * @param {string} contentType The type of the list. | 15 * @param {string} contentType The type of the list. |
| 16 */ | 16 */ |
| 17 function IsEditableType(contentType) { | 17 function IsEditableType(contentType) { |
| 18 // Exceptions of the following lists are not editable for now. | 18 // Exceptions of the following lists are not editable for now. |
| 19 return !(contentType == 'notifications' || | 19 return !(contentType == 'location' || |
| 20 contentType == 'location' || | |
| 21 contentType == 'fullscreen' || | 20 contentType == 'fullscreen' || |
| 22 contentType == 'media-stream-mic' || | 21 contentType == 'media-stream-mic' || |
| 23 contentType == 'media-stream-camera' || | 22 contentType == 'media-stream-camera' || |
| 24 contentType == 'midi-sysex' || | 23 contentType == 'midi-sysex' || |
| 25 contentType == 'zoomlevels'); | 24 contentType == 'zoomlevels'); |
| 26 } | 25 } |
| 27 | 26 |
| 28 /** | 27 /** |
| 29 * Creates a new exceptions list item. | 28 * Creates a new exceptions list item. |
| 30 * | 29 * |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 } | 654 } |
| 656 }; | 655 }; |
| 657 | 656 |
| 658 return { | 657 return { |
| 659 ExceptionsListItem: ExceptionsListItem, | 658 ExceptionsListItem: ExceptionsListItem, |
| 660 ExceptionsAddRowListItem: ExceptionsAddRowListItem, | 659 ExceptionsAddRowListItem: ExceptionsAddRowListItem, |
| 661 ExceptionsList: ExceptionsList, | 660 ExceptionsList: ExceptionsList, |
| 662 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, | 661 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, |
| 663 }; | 662 }; |
| 664 }); | 663 }); |
| OLD | NEW |