| 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 'components/media_router/mojo/media_controller.mojom', |
| 9 'components/media_router/mojo/media_router.mojom', |
| 10 'components/media_router/mojo/media_status.mojom', |
| 8 'content/public/renderer/frame_interfaces', | 11 'content/public/renderer/frame_interfaces', |
| 9 'chrome/browser/media/router/mojo/media_controller.mojom', | |
| 10 'chrome/browser/media/router/mojo/media_router.mojom', | |
| 11 'chrome/browser/media/router/mojo/media_status.mojom', | |
| 12 'extensions/common/mojo/keep_alive.mojom', | 12 'extensions/common/mojo/keep_alive.mojom', |
| 13 'mojo/common/time.mojom', | 13 'mojo/common/time.mojom', |
| 14 'mojo/public/js/bindings', | 14 'mojo/public/js/bindings', |
| 15 'net/interfaces/ip_address.mojom', | 15 'net/interfaces/ip_address.mojom', |
| 16 'url/mojo/origin.mojom', | 16 'url/mojo/origin.mojom', |
| 17 'url/mojo/url.mojom', | 17 'url/mojo/url.mojom', |
| 18 ], function(frameInterfaces, | 18 ], function(mediaControllerMojom, |
| 19 mediaControllerMojom, | |
| 20 mediaRouterMojom, | 19 mediaRouterMojom, |
| 21 mediaStatusMojom, | 20 mediaStatusMojom, |
| 21 frameInterfaces, |
| 22 keepAliveMojom, | 22 keepAliveMojom, |
| 23 timeMojom, | 23 timeMojom, |
| 24 bindings, | 24 bindings, |
| 25 ipAddressMojom, | 25 ipAddressMojom, |
| 26 originMojom, | 26 originMojom, |
| 27 urlMojom) { | 27 urlMojom) { |
| 28 'use strict'; | 28 'use strict'; |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * Converts a media sink to a MediaSink Mojo object. | 31 * Converts a media sink to a MediaSink Mojo object. |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 } | 936 } |
| 937 this.handlers_.onBeforeInvokeHandler(); | 937 this.handlers_.onBeforeInvokeHandler(); |
| 938 this.handlers_.setMediaRouteStatusObserver(routeId, observer); | 938 this.handlers_.setMediaRouteStatusObserver(routeId, observer); |
| 939 }; | 939 }; |
| 940 | 940 |
| 941 mediaRouter = new MediaRouter(new mediaRouterMojom.MediaRouterPtr( | 941 mediaRouter = new MediaRouter(new mediaRouterMojom.MediaRouterPtr( |
| 942 frameInterfaces.getInterface(mediaRouterMojom.MediaRouter.name))); | 942 frameInterfaces.getInterface(mediaRouterMojom.MediaRouter.name))); |
| 943 | 943 |
| 944 return mediaRouter; | 944 return mediaRouter; |
| 945 }); | 945 }); |
| OLD | NEW |