| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-site-list' shows a list of Allowed and Blocked sites for a given | 7 * 'settings-site-list' shows a list of Allowed and Blocked sites for a given |
| 8 * category. | 8 * category. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| 11 | 11 |
| 12 is: 'settings-site-list', | 12 is: 'settings-site-list', |
| 13 | 13 |
| 14 behaviors: [SiteSettingsBehavior, WebUIListenerBehavior], | 14 behaviors: [SiteSettingsBehavior, WebUIListenerBehavior], |
| 15 | 15 |
| 16 properties: { | 16 properties: { |
| 17 /** | 17 /** |
| 18 * The current active route. | |
| 19 */ | |
| 20 currentRoute: { | |
| 21 type: Object, | |
| 22 notify: true, | |
| 23 }, | |
| 24 | |
| 25 /** | |
| 26 * The site that was selected by the user in the dropdown list. | 18 * The site that was selected by the user in the dropdown list. |
| 27 * @type {SiteException} | 19 * @type {SiteException} |
| 28 */ | 20 */ |
| 29 selectedSite: { | 21 selectedSite: { |
| 30 type: Object, | 22 type: Object, |
| 31 notify: true, | 23 notify: true, |
| 32 }, | 24 }, |
| 33 | 25 |
| 34 /** | 26 /** |
| 35 * Array of sites to display in the widget. | 27 * Array of sites to display in the widget. |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // is redundant to also list all the sites that are blocked. | 473 // is redundant to also list all the sites that are blocked. |
| 482 if (this.isAllowList_()) | 474 if (this.isAllowList_()) |
| 483 return true; | 475 return true; |
| 484 | 476 |
| 485 if (this.isSessionOnlyList_()) | 477 if (this.isSessionOnlyList_()) |
| 486 return siteList.length > 0; | 478 return siteList.length > 0; |
| 487 | 479 |
| 488 return toggleState; | 480 return toggleState; |
| 489 }, | 481 }, |
| 490 }); | 482 }); |
| OLD | NEW |