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

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

Issue 2461113002: WebUI: Make settings-action-menu re-usable as cr-action-menu. (Closed)
Patch Set: getComputedStyle instead of util.js Created 4 years, 1 month 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 * 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 492
493 return toggleState; 493 return toggleState;
494 }, 494 },
495 495
496 /** 496 /**
497 * @param {!{model: !{item: !SiteException}}} e 497 * @param {!{model: !{item: !SiteException}}} e
498 * @private 498 * @private
499 */ 499 */
500 onShowActionMenuTap_: function(e) { 500 onShowActionMenuTap_: function(e) {
501 this.actionMenuSite_ = e.model.item; 501 this.actionMenuSite_ = e.model.item;
502 /** @type {!SettingsActionMenuElement} */ ( 502 /** @type {!CrActionMenuElement} */ (
503 this.$$('dialog[is=settings-action-menu]')).showAt( 503 this.$$('dialog[is=cr-action-menu]')).showAt(
504 /** @type {!Element} */ ( 504 /** @type {!Element} */ (
505 Polymer.dom(/** @type {!Event} */ (e)).localTarget)); 505 Polymer.dom(/** @type {!Event} */ (e)).localTarget));
506 }, 506 },
507 507
508 /** @private */ 508 /** @private */
509 closeActionMenu_: function() { 509 closeActionMenu_: function() {
510 this.actionMenuSite_ = null; 510 this.actionMenuSite_ = null;
511 /** @type {!SettingsActionMenuElement} */ ( 511 /** @type {!CrActionMenuElement} */ (
512 this.$$('dialog[is=settings-action-menu]')).close(); 512 this.$$('dialog[is=cr-action-menu]')).close();
513 }, 513 },
514 }); 514 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698