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; |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 this.resetInput(); | 447 this.resetInput(); |
448 chrome.send('setException', | 448 chrome.send('setException', |
449 [this.contentType, this.mode, newPattern, newSetting]); | 449 [this.contentType, this.mode, newPattern, newSetting]); |
450 }, | 450 }, |
451 }; | 451 }; |
452 | 452 |
453 /** | 453 /** |
454 * Creates a new exceptions list. | 454 * Creates a new exceptions list. |
455 * | 455 * |
456 * @constructor | 456 * @constructor |
457 * @extends {cr.ui.List} | 457 * @extends {options.InlineEditableItemList} |
458 */ | 458 */ |
459 var ExceptionsList = cr.ui.define('list'); | 459 var ExceptionsList = cr.ui.define('list'); |
460 | 460 |
461 ExceptionsList.prototype = { | 461 ExceptionsList.prototype = { |
462 __proto__: InlineEditableItemList.prototype, | 462 __proto__: InlineEditableItemList.prototype, |
463 | 463 |
464 /** | 464 /** |
465 * Called when an element is decorated as a list. | 465 * Called when an element is decorated as a list. |
466 */ | 466 */ |
467 decorate: function() { | 467 decorate: function() { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 } | 679 } |
680 }; | 680 }; |
681 | 681 |
682 return { | 682 return { |
683 ExceptionsListItem: ExceptionsListItem, | 683 ExceptionsListItem: ExceptionsListItem, |
684 ExceptionsAddRowListItem: ExceptionsAddRowListItem, | 684 ExceptionsAddRowListItem: ExceptionsAddRowListItem, |
685 ExceptionsList: ExceptionsList, | 685 ExceptionsList: ExceptionsList, |
686 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, | 686 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, |
687 }; | 687 }; |
688 }); | 688 }); |
OLD | NEW |