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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 OptionsPage.call(this, 'contentExceptions', | 600 OptionsPage.call(this, 'contentExceptions', |
601 loadTimeData.getString('contentSettingsPageTabTitle'), | 601 loadTimeData.getString('contentSettingsPageTabTitle'), |
602 'content-settings-exceptions-area'); | 602 'content-settings-exceptions-area'); |
603 } | 603 } |
604 | 604 |
605 cr.addSingletonGetter(ContentSettingsExceptionsArea); | 605 cr.addSingletonGetter(ContentSettingsExceptionsArea); |
606 | 606 |
607 ContentSettingsExceptionsArea.prototype = { | 607 ContentSettingsExceptionsArea.prototype = { |
608 __proto__: OptionsPage.prototype, | 608 __proto__: OptionsPage.prototype, |
609 | 609 |
| 610 /** @override */ |
610 initializePage: function() { | 611 initializePage: function() { |
611 OptionsPage.prototype.initializePage.call(this); | 612 OptionsPage.prototype.initializePage.call(this); |
612 | 613 |
613 var exceptionsLists = this.pageDiv.querySelectorAll('list'); | 614 var exceptionsLists = this.pageDiv.querySelectorAll('list'); |
614 for (var i = 0; i < exceptionsLists.length; i++) { | 615 for (var i = 0; i < exceptionsLists.length; i++) { |
615 options.contentSettings.ExceptionsList.decorate(exceptionsLists[i]); | 616 options.contentSettings.ExceptionsList.decorate(exceptionsLists[i]); |
616 } | 617 } |
617 | 618 |
618 ContentSettingsExceptionsArea.hideOTRLists(false); | 619 ContentSettingsExceptionsArea.hideOTRLists(false); |
619 | 620 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 } | 684 } |
684 }; | 685 }; |
685 | 686 |
686 return { | 687 return { |
687 ExceptionsListItem: ExceptionsListItem, | 688 ExceptionsListItem: ExceptionsListItem, |
688 ExceptionsAddRowListItem: ExceptionsAddRowListItem, | 689 ExceptionsAddRowListItem: ExceptionsAddRowListItem, |
689 ExceptionsList: ExceptionsList, | 690 ExceptionsList: ExceptionsList, |
690 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, | 691 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, |
691 }; | 692 }; |
692 }); | 693 }); |
OLD | NEW |