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

Side by Side Diff: extensions/renderer/resources/media_router_bindings.js

Issue 2555853003: Break up common_custom_types.mojom. (Closed)
Patch Set: Created 4 years 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 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
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 });
OLDNEW
« no previous file with comments | « extensions/renderer/resources/extensions_renderer_resources.grd ('k') | gpu/ipc/common/gpu_info.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698