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

Unified Diff: chrome/browser/resources/settings/printing_page/cups_printers_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/printing_page/cups_printers_list.js
diff --git a/chrome/browser/resources/settings/printing_page/cups_printers_list.js b/chrome/browser/resources/settings/printing_page/cups_printers_list.js
index 3b46bc490de5743a91a012407e421f85fa8b1bc8..7ce3f04513e4c4c4d2fd8281ad3870eff18a8c76 100644
--- a/chrome/browser/resources/settings/printing_page/cups_printers_list.js
+++ b/chrome/browser/resources/settings/printing_page/cups_printers_list.js
@@ -41,8 +41,8 @@ Polymer({
*/
onOpenActionMenuTap_: function(e) {
this.activePrinter_ = e.model.item;
- var menu = /** @type {!SettingsActionMenuElement} */ (
- this.$$('dialog[is=settings-action-menu]'));
+ var menu = /** @type {!CrActionMenuElement} */ (
+ this.$$('dialog[is=cr-action-menu]'));
menu.showAt(/** @type {!Element} */ (
Polymer.dom(/** @type {!Event} */ (e)).localTarget));
},
@@ -72,8 +72,8 @@ Polymer({
/** @private */
closeDropdownMenu_: function() {
this.activePrinter_ = null;
- var menu = /** @type {!SettingsActionMenuElement} */ (
- this.$$('dialog[is=settings-action-menu]'));
+ var menu = /** @type {!CrActionMenuElement} */ (
+ this.$$('dialog[is=cr-action-menu]'));
menu.close();
},

Powered by Google App Engine
This is Rietveld 408576698