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

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

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 23fac9c623cd78e6aab5da337abdce8a78f25093..5fb6c33ca45da7f09c74de7f28a4db545ec2ffb1 100644
--- a/chrome/browser/resources/media_router/media_router_ui_interface.js
+++ b/chrome/browser/resources/media_router/media_router_ui_interface.js
@@ -350,6 +350,20 @@ cr.define('media_router.browserApi', function() {
[{sinkId: sinkId, selectedCastMode: selectedCastMode}]);
}
+ /**
+ * Requests that the media router search all providers for a sink with id
+ * |sinkId| that can be used with the media source associated with the cast
+ * mode |selectedCastMode|.
+ *
+ * @param {string} sinkId Sink ID to search for.
+ * @param {number} selectedCastMode The value of the cast mode to be used with
+ * the sink.
+ */
+ function searchProviders(sinkId, selectedCastMode) {
+ chrome.send('searchProviders',
+ [{sinkId: sinkId, selectedCastMode: selectedCastMode}]);
+ }
+
return {
acknowledgeFirstRunFlow: acknowledgeFirstRunFlow,
actOnIssue: actOnIssue,
@@ -370,5 +384,6 @@ cr.define('media_router.browserApi', function() {
reportTimeToInitialActionClose: reportTimeToInitialActionClose,
requestInitialData: requestInitialData,
requestRoute: requestRoute,
+ searchProviders: searchProviders,
};
});

Powered by Google App Engine
This is Rietveld 408576698