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

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

Issue 2027023002: ImageCapture: move mojom from WebKit/public to media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restricted DEPS, added .mojom comments Created 4 years, 6 months 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
« no previous file with comments | « media/mojo/interfaces/mojo_bindings.gyp ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 "use strict"; 1 "use strict";
2 2
3 let mockImageCaptureReady = define( 3 let mockImageCaptureReady = define(
4 'mockImageCapture', 4 'mockImageCapture',
5 ['third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom' , 5 ['media/mojo/interfaces/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/service_registry', 8 'content/public/renderer/service_registry',
9 ], (imageCapture, bindings, connection, serviceRegistry) => { 9 ], (imageCapture, bindings, connection, serviceRegistry) => {
10 10
11 class MockImageCapture { 11 class MockImageCapture {
12 constructor() { 12 constructor() {
13 serviceRegistry.addServiceOverrideForTesting( 13 serviceRegistry.addServiceOverrideForTesting(
14 imageCapture.ImageCapture.name, 14 imageCapture.ImageCapture.name,
15 pipe => this.bindToPipe(pipe)); 15 pipe => this.bindToPipe(pipe));
(...skipping 15 matching lines...) Expand all
31 data : "(,,,)=(^.^)=(,,,)" }); 31 data : "(,,,)=(^.^)=(,,,)" });
32 } 32 }
33 33
34 capabilities() { 34 capabilities() {
35 return this.capabilities_.capabilities; 35 return this.capabilities_.capabilities;
36 } 36 }
37 37
38 } 38 }
39 return new MockImageCapture(); 39 return new MockImageCapture();
40 }); 40 });
OLDNEW
« no previous file with comments | « media/mojo/interfaces/mojo_bindings.gyp ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698