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

Side by Side Diff: third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js

Issue 2539543002: RELAND: ImageCapture: move image_capture.mojom from media/mojo/interfaces/ to media/capture/mojo/ (Closed)
Patch Set: https://codereview.chromium.org/2526953002 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 "use strict"; 1 "use strict";
2 2
3 let mockImageCaptureReady = define( 3 let mockImageCaptureReady = define(
4 'mockImageCapture', 4 'mockImageCapture',
5 ['media/mojo/interfaces/image_capture.mojom', 5 ['media/capture/mojo/image_capture.mojom',
6 'mojo/public/js/bindings', 6 'mojo/public/js/bindings',
7 'mojo/public/js/connection', 7 'mojo/public/js/connection',
8 'content/public/renderer/interfaces', 8 'content/public/renderer/interfaces',
9 ], (imageCapture, bindings, connection, interfaces) => { 9 ], (imageCapture, bindings, connection, interfaces) => {
10 10
11 class MockImageCapture { 11 class MockImageCapture {
12 constructor() { 12 constructor() {
13 interfaces.addInterfaceOverrideForTesting( 13 interfaces.addInterfaceOverrideForTesting(
14 imageCapture.ImageCapture.name, 14 imageCapture.ImageCapture.name,
15 pipe => this.bindToPipe(pipe)); 15 pipe => this.bindToPipe(pipe));
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return this.capabilities_.capabilities; 59 return this.capabilities_.capabilities;
60 } 60 }
61 61
62 options() { 62 options() {
63 return this.settings_; 63 return this.settings_;
64 } 64 }
65 65
66 } 66 }
67 return new MockImageCapture(); 67 return new MockImageCapture();
68 }); 68 });
OLDNEW
« no previous file with comments | « services/video_capture/BUILD.gn ('k') | third_party/WebKit/Source/modules/imagecapture/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698