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

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..1cd5068dad6b4ace9e21d798fbaeed6a3f6b680f 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,11 @@ Polymer({
// Force default icon, if no |engine.iconURL| is available.
return cr.icon.getFavicon(url || '');
},
+
+ /** @private */
+ onDotsTap_: function() {
+ /** @type {!SettingsActionMenuElement} */ (
+ this.$$('dialog[is=settings-action-menu]')).showAt(
+ assert(this.$$('paper-icon-button')));
+ },
});

Powered by Google App Engine
This is Rietveld 408576698