OLD | NEW |
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/capture/imagecapture/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 Loading... |
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 }); |
OLD | NEW |