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

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

Issue 2593503004: [MD settings] remove action menu from all-sites (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_list.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Enumeration mapping all possible controlled-by values for exceptions to 6 * Enumeration mapping all possible controlled-by values for exceptions to
7 * icons. 7 * icons.
8 * @enum {string} 8 * @enum {string}
9 */ 9 */
10 var iconControlledBy = { 10 var iconControlledBy = {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 */ 195 */
196 hasSites_: function() { 196 hasSites_: function() {
197 return !!this.sites.length; 197 return !!this.sites.length;
198 }, 198 },
199 199
200 /** 200 /**
201 * @param {string} source Where the setting came from. 201 * @param {string} source Where the setting came from.
202 * @return {boolean} 202 * @return {boolean}
203 * @private 203 * @private
204 */ 204 */
205 shouldShowMenu_: function(source) { 205 isActionMenuHidden_: function(source) {
dpapad 2016/12/21 01:30:59 So it seems shouldShowMenu_ was dead code previous
dschuyler 2016/12/21 02:06:47 That appears to be so.
206 return !(this.isExceptionControlled_(source) || this.allSites); 206 return this.isExceptionControlled_(source) || this.allSites;
207 }, 207 },
208 208
209 /** 209 /**
210 * A handler for the Add Site button. 210 * A handler for the Add Site button.
211 * @param {!Event} e 211 * @param {!Event} e
212 * @private 212 * @private
213 */ 213 */
214 onAddSiteTap_: function(e) { 214 onAddSiteTap_: function(e) {
215 e.preventDefault(); 215 e.preventDefault();
216 var dialog = document.createElement('add-site-dialog'); 216 var dialog = document.createElement('add-site-dialog');
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 Polymer.dom(/** @type {!Event} */ (e)).localTarget)); 472 Polymer.dom(/** @type {!Event} */ (e)).localTarget));
473 }, 473 },
474 474
475 /** @private */ 475 /** @private */
476 closeActionMenu_: function() { 476 closeActionMenu_: function() {
477 this.actionMenuSite_ = null; 477 this.actionMenuSite_ = null;
478 /** @type {!CrActionMenuElement} */ ( 478 /** @type {!CrActionMenuElement} */ (
479 this.$$('dialog[is=cr-action-menu]')).close(); 479 this.$$('dialog[is=cr-action-menu]')).close();
480 }, 480 },
481 }); 481 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/site_list.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698