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

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

Issue 1140823003: Redesign cast-mode-picker UX and switch to core/paper elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/media_router.js
diff --git a/chrome/browser/resources/media_router/media_router.js b/chrome/browser/resources/media_router/media_router.js
index e24c1a7f61f134d22d94a0ed4a1a9663dfb1a66c..82cb1649e8c363ac0e3d68da3dd796444b976dd4 100644
--- a/chrome/browser/resources/media_router/media_router.js
+++ b/chrome/browser/resources/media_router/media_router.js
@@ -23,7 +23,6 @@ cr.define('media_router', function() {
container = $('media-router-container');
media_router.ui.setContainer(container);
- container.addEventListener('cast-mode-click', onCastModeClick);
container.addEventListener('close-button-click', onCloseDialogClick);
container.addEventListener('close-route-click', onCloseRouteClick);
container.addEventListener('create-route', onCreateRoute);
@@ -31,20 +30,6 @@ cr.define('media_router', function() {
}
/**
- * Changes the UI, such as the the header text, in response to a cast mode
- * change.
- * Called when the user selects a cast mode.
- *
- * @param {{detail: {headerText: string}}} data
- * Parameters in |data|.detail:
- * headerText - the new header text corresponding to the selected
- * cast mode.
- */
- function onCastModeClick(data) {
- container.headerText = data.detail.headerText;
- }
-
- /**
* Closes the dialog.
* Called when the user clicks the close button on the dialog.
*/

Powered by Google App Engine
This is Rietveld 408576698