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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_entry.js

Issue 2402553002: MD Settings: Implementing modal popup/action menus. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js b/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
index 5a33a8757e30841460ad6fc62290b8e7da8d55bb..b458c4658d692b8aa4d440915457c0fb8e72603e 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
@@ -69,7 +69,7 @@ Polymer({
/** @private */
closePopupMenu_: function() {
- this.$$('iron-dropdown').close();
+ this.$$('dialog[is=settings-action-menu]').close();
},
/**
@@ -81,4 +81,10 @@ Polymer({
// Force default icon, if no |engine.iconURL| is available.
return cr.icon.getFavicon(url || '');
},
+
+ onDotsTap_: function(e) {
+ var rect = this.$$('paper-icon-button').getBoundingClientRect();
+ /** @type {!SettingsActionMenuElement} */ (
+ this.$$('dialog[is=settings-action-menu]')).showAtLocation(rect);
+ },
});

Powered by Google App Engine
This is Rietveld 408576698