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

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

Issue 1273423004: Shows a launch spinner next to a sink once it is selected to create a route. The launch spinner sur… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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_ui_interface.js
diff --git a/chrome/browser/resources/media_router/media_router_ui_interface.js b/chrome/browser/resources/media_router/media_router_ui_interface.js
index e5789f1adf9b9da452fdd88067617be3c1dd9867..ee1a5ecc31b7d5e79a5e103e555d3dd6fe59292d 100644
--- a/chrome/browser/resources/media_router/media_router_ui_interface.js
+++ b/chrome/browser/resources/media_router/media_router_ui_interface.js
@@ -11,12 +11,15 @@ cr.define('media_router.ui', function() {
var container = null;
/**
- * Adds a new route.
+ * Handles response of previous create route attempt.
*
- * @param {!media_router.Route} route
+ * @param {string} sinkId The ID of the sink to which the Media Route was
+ * creating a route.
+ * @param {?media_router.Route} route The newly create route to the sink
+ * if succeeded; null otherwise.
*/
- function addRoute(route) {
- container.addRoute(route);
+ function onCreateRouteResponseReceived(sinkId, route) {
+ container.onCreateRouteResponseReceived(sinkId, route);
}
/**
@@ -91,7 +94,7 @@ cr.define('media_router.ui', function() {
}
return {
- addRoute: addRoute,
+ onCreateRouteResponseReceived: onCreateRouteResponseReceived,
setCastModeList: setCastModeList,
setContainer: setContainer,
setInitialData: setInitialData,

Powered by Google App Engine
This is Rietveld 408576698