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 'chrome/common/media_router/mojo/media_controller.mojom', |
| 9 'chrome/common/media_router/mojo/media_router.mojom', |
| 10 'chrome/common/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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 } | 953 } |
954 this.handlers_.onBeforeInvokeHandler(); | 954 this.handlers_.onBeforeInvokeHandler(); |
955 this.handlers_.setMediaRouteStatusObserver(routeId, observer); | 955 this.handlers_.setMediaRouteStatusObserver(routeId, observer); |
956 }; | 956 }; |
957 | 957 |
958 mediaRouter = new MediaRouter(new mediaRouterMojom.MediaRouterPtr( | 958 mediaRouter = new MediaRouter(new mediaRouterMojom.MediaRouterPtr( |
959 frameInterfaces.getInterface(mediaRouterMojom.MediaRouter.name))); | 959 frameInterfaces.getInterface(mediaRouterMojom.MediaRouter.name))); |
960 | 960 |
961 return mediaRouter; | 961 return mediaRouter; |
962 }); | 962 }); |
OLD | NEW |