Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_list.js

Issue 1947533002: Material WebUI: create shared icon file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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({
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 this.$.category.hidden = 180 this.$.category.hidden =
181 !this.showSiteList_(this.sites, this.categoryEnabled); 181 !this.showSiteList_(this.sites, this.categoryEnabled);
182 }, 182 },
183 183
184 /** 184 /**
185 * Handles the expanding and collapsing of the sites list. 185 * Handles the expanding and collapsing of the sites list.
186 * @private 186 * @private
187 */ 187 */
188 onToggle_: function(e) { 188 onToggle_: function(e) {
189 if (this.$.category.opened) 189 if (this.$.category.opened)
190 this.$.icon.icon = 'icons:expand-less'; 190 this.$.icon.icon = 'cr-icons:expand-less';
191 else 191 else
192 this.$.icon.icon = 'icons:expand-more'; 192 this.$.icon.icon = 'cr-icons:expand-more';
193 }, 193 },
194 194
195 /** 195 /**
196 * Populate the sites list for display. 196 * Populate the sites list for display.
197 * @private 197 * @private
198 */ 198 */
199 populateList_: function() { 199 populateList_: function() {
200 if (this.allSites) { 200 if (this.allSites) {
201 this.getAllSitesList_().then(function(lists) { 201 this.getAllSitesList_().then(function(lists) {
202 this.processExceptions_(lists); 202 this.processExceptions_(lists);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 return false; 445 return false;
446 446
447 // The Block list is only shown when the category is set to Allow since it 447 // The Block list is only shown when the category is set to Allow since it
448 // is redundant to also list all the sites that are blocked. 448 // is redundant to also list all the sites that are blocked.
449 if (this.isAllowList_()) 449 if (this.isAllowList_())
450 return true; 450 return true;
451 451
452 return toggleState; 452 return toggleState;
453 }, 453 },
454 }); 454 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698