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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // API invoked by the browser MediaRouterWebUIMessageHandler to communicate 5 // API invoked by the browser MediaRouterWebUIMessageHandler to communicate
6 // with this UI. 6 // with this UI.
7 cr.define('media_router.ui', function() { 7 cr.define('media_router.ui', function() {
8 'use strict'; 8 'use strict';
9 9
10 // The media-router-container element. 10 // The media-router-container element.
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 * 343 *
344 * @param {string} sinkId The sink ID. 344 * @param {string} sinkId The sink ID.
345 * @param {number} selectedCastMode The value of the cast mode the user 345 * @param {number} selectedCastMode The value of the cast mode the user
346 * selected. 346 * selected.
347 */ 347 */
348 function requestRoute(sinkId, selectedCastMode) { 348 function requestRoute(sinkId, selectedCastMode) {
349 chrome.send('requestRoute', 349 chrome.send('requestRoute',
350 [{sinkId: sinkId, selectedCastMode: selectedCastMode}]); 350 [{sinkId: sinkId, selectedCastMode: selectedCastMode}]);
351 } 351 }
352 352
353 /**
354 * Requests that the media router search all providers for a sink with id
355 * |sinkId| that can be used with the media source associated with the cast
356 * mode |selectedCastMode|.
357 *
358 * @param {string} sinkId Sink ID to search for.
359 * @param {number} selectedCastMode The value of the cast mode to be used with
360 * the sink.
361 */
362 function searchProviders(sinkId, selectedCastMode) {
363 chrome.send('searchProviders',
364 [{sinkId: sinkId, selectedCastMode: selectedCastMode}]);
365 }
366
353 return { 367 return {
354 acknowledgeFirstRunFlow: acknowledgeFirstRunFlow, 368 acknowledgeFirstRunFlow: acknowledgeFirstRunFlow,
355 actOnIssue: actOnIssue, 369 actOnIssue: actOnIssue,
356 closeDialog: closeDialog, 370 closeDialog: closeDialog,
357 closeRoute: closeRoute, 371 closeRoute: closeRoute,
358 joinRoute: joinRoute, 372 joinRoute: joinRoute,
359 onInitialDataReceived: onInitialDataReceived, 373 onInitialDataReceived: onInitialDataReceived,
360 reportBlur: reportBlur, 374 reportBlur: reportBlur,
361 reportClickedSinkIndex: reportClickedSinkIndex, 375 reportClickedSinkIndex: reportClickedSinkIndex,
362 reportInitialAction: reportInitialAction, 376 reportInitialAction: reportInitialAction,
363 reportInitialState: reportInitialState, 377 reportInitialState: reportInitialState,
364 reportNavigateToView: reportNavigateToView, 378 reportNavigateToView: reportNavigateToView,
365 reportRouteCreation: reportRouteCreation, 379 reportRouteCreation: reportRouteCreation,
366 reportRouteCreationOutcome: reportRouteCreationOutcome, 380 reportRouteCreationOutcome: reportRouteCreationOutcome,
367 reportSelectedCastMode: reportSelectedCastMode, 381 reportSelectedCastMode: reportSelectedCastMode,
368 reportSinkCount: reportSinkCount, 382 reportSinkCount: reportSinkCount,
369 reportTimeToClickSink: reportTimeToClickSink, 383 reportTimeToClickSink: reportTimeToClickSink,
370 reportTimeToInitialActionClose: reportTimeToInitialActionClose, 384 reportTimeToInitialActionClose: reportTimeToInitialActionClose,
371 requestInitialData: requestInitialData, 385 requestInitialData: requestInitialData,
372 requestRoute: requestRoute, 386 requestRoute: requestRoute,
387 searchProviders: searchProviders,
373 }; 388 };
374 }); 389 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698