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

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: Position smarter. 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..741e509771a24bb4741e6556b62f5d7904480e91 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=cr-action-menu]').close();
},
/**
@@ -81,4 +81,9 @@ 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();
+ this.$$('dialog[is=cr-action-menu]').showAtLocation(rect);
+ },
});

Powered by Google App Engine
This is Rietveld 408576698