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

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

Issue 1610523002: [Media Router] Make header text clickable to switch between sink list and cast mode views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per imcheng@'s comments. Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/resources/media_router/elements/media_router_header/media_router_header.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 75e6bcf044886e757b736b4c0a3e4772f153905e..2d6e45d84b6f6416733f33f580774fc63f19e6d1 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
@@ -351,7 +351,7 @@ Polymer({
},
listeners: {
- 'arrow-drop-click': 'toggleCastModeHidden_',
+ 'header-or-arrow-click': 'toggleCastModeHidden_',
'mouseleave': 'onMouseLeave_',
'mouseenter': 'onMouseEnter_',
},
@@ -1159,7 +1159,7 @@ Polymer({
toggleCastModeHidden_: function() {
if (this.currentView_ == media_router.MediaRouterView.CAST_MODE_LIST) {
this.showSinkList_();
- } else {
+ } else if (this.currentView_ == media_router.MediaRouterView.SINK_LIST) {
this.showCastModeList_();
this.fire('navigate-to-cast-mode-list');
}
« no previous file with comments | « no previous file | chrome/browser/resources/media_router/elements/media_router_header/media_router_header.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698