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

Unified Diff: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js

Issue 1128023003: Media Router: Replace drop-down-button with core-icon-button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/media_router/elements/media_router_container/media_router_container.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
index 9f711d093fdc1be6ef3fa4348b6811e8e56c32a9..3caeade710513a705a883ae22c56aae71297108b 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
@@ -226,6 +226,18 @@ Polymer('media-router-container', {
},
/**
+ * Filter that returns the arrow-drop-* icon to show.
+ *
+ * @param {{castModeHidden: boolean}} value The parameters passed into this
+ * filter.
+ * Parameters in |value|:
+ * castModeHidden - Whether or not the cast mode is currently hidden.
+ */
+ getDropDownIcon: function(value) {
+ return value['castModeHidden'] ? 'arrow-drop-down' : 'arrow-drop-up';
+ },
+
+ /**
* Hides cast-mode-picker.
*/
hideCastMode: function() {

Powered by Google App Engine
This is Rietveld 408576698