| OLD | NEW |
| 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 var mediaRouter; | 5 var mediaRouter; |
| 6 | 6 |
| 7 define('media_router_bindings', [ | 7 define('media_router_bindings', [ |
| 8 'mojo/public/js/bindings', | 8 'mojo/public/js/bindings', |
| 9 'mojo/public/js/core', | 9 'mojo/public/js/core', |
| 10 'content/public/renderer/frame_service_registry', | 10 'content/public/renderer/frame_service_registry', |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 /** | 463 /** |
| 464 * TODO(imcheng): Remove in M55 (crbug.com/626395). | 464 * TODO(imcheng): Remove in M55 (crbug.com/626395). |
| 465 * @type {function(string): | 465 * @type {function(string): |
| 466 * Promise.<{messages: Array.<RouteMessage>, error: boolean}>} | 466 * Promise.<{messages: Array.<RouteMessage>, error: boolean}>} |
| 467 */ | 467 */ |
| 468 this.listenForRouteMessages = null; | 468 this.listenForRouteMessages = null; |
| 469 | 469 |
| 470 /** | 470 /** |
| 471 * @type {function(string)} | 471 * @type {function(string)} |
| 472 */ | 472 */ |
| 473 this.startlisteningForRouteMessages = null; | 473 this.startListeningForRouteMessages = null; |
| 474 | 474 |
| 475 /** | 475 /** |
| 476 * @type {function(string)} | 476 * @type {function(string)} |
| 477 */ | 477 */ |
| 478 this.stopListeningForRouteMessages = null; | 478 this.stopListeningForRouteMessages = null; |
| 479 | 479 |
| 480 /** | 480 /** |
| 481 * @type {function(string)} | 481 * @type {function(string)} |
| 482 */ | 482 */ |
| 483 this.detachRoute = null; | 483 this.detachRoute = null; |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 }; | 857 }; |
| 858 | 858 |
| 859 mediaRouter = new MediaRouter(connector.bindHandleToProxy( | 859 mediaRouter = new MediaRouter(connector.bindHandleToProxy( |
| 860 serviceProvider.connectToService( | 860 serviceProvider.connectToService( |
| 861 mediaRouterMojom.MediaRouter.name), | 861 mediaRouterMojom.MediaRouter.name), |
| 862 mediaRouterMojom.MediaRouter)); | 862 mediaRouterMojom.MediaRouter)); |
| 863 | 863 |
| 864 return mediaRouter; | 864 return mediaRouter; |
| 865 }); | 865 }); |
| 866 | 866 |
| OLD | NEW |