| 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_interfaces', | 10 'content/public/renderer/frame_interfaces', |
| 11 'chrome/browser/media/router/mojo/media_router.mojom', | 11 'chrome/browser/media/router/mojo/media_router.mojom', |
| 12 'extensions/common/mojo/keep_alive.mojom', | 12 'extensions/common/mojo/keep_alive.mojom', |
| 13 'mojo/common/common_custom_types.mojom', | 13 'mojo/common/time.mojom', |
| 14 'mojo/public/js/connection', | 14 'mojo/public/js/connection', |
| 15 'mojo/public/js/router', | 15 'mojo/public/js/router', |
| 16 ], function(bindings, | 16 ], function(bindings, |
| 17 core, | 17 core, |
| 18 frameInterfaces, | 18 frameInterfaces, |
| 19 mediaRouterMojom, | 19 mediaRouterMojom, |
| 20 keepAliveMojom, | 20 keepAliveMojom, |
| 21 commonCustomTypesMojom, | 21 timeMojom, |
| 22 connector, | 22 connector, |
| 23 routerModule) { | 23 routerModule) { |
| 24 'use strict'; | 24 'use strict'; |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * Converts a media sink to a MediaSink Mojo object. | 27 * Converts a media sink to a MediaSink Mojo object. |
| 28 * @param {!MediaSink} sink A media sink. | 28 * @param {!MediaSink} sink A media sink. |
| 29 * @return {!mediaRouterMojom.MediaSink} A Mojo MediaSink object. | 29 * @return {!mediaRouterMojom.MediaSink} A Mojo MediaSink object. |
| 30 */ | 30 */ |
| 31 function sinkToMojo_(sink) { | 31 function sinkToMojo_(sink) { |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 'sink_id': this.handlers_.searchSinks(sinkId, sourceUrn, searchCriteria) | 823 'sink_id': this.handlers_.searchSinks(sinkId, sourceUrn, searchCriteria) |
| 824 }); | 824 }); |
| 825 }; | 825 }; |
| 826 | 826 |
| 827 mediaRouter = new MediaRouter(connector.bindHandleToProxy( | 827 mediaRouter = new MediaRouter(connector.bindHandleToProxy( |
| 828 frameInterfaces.getInterface(mediaRouterMojom.MediaRouter.name), | 828 frameInterfaces.getInterface(mediaRouterMojom.MediaRouter.name), |
| 829 mediaRouterMojom.MediaRouter)); | 829 mediaRouterMojom.MediaRouter)); |
| 830 | 830 |
| 831 return mediaRouter; | 831 return mediaRouter; |
| 832 }); | 832 }); |
| OLD | NEW |