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

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

Issue 2620083002: Shape Detection: Move mojom interface to //services (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 "use strict"; 1 "use strict";
2 2
3 let mockFaceDetectionProviderReady = define( 3 let mockFaceDetectionProviderReady = define(
4 'mockFaceDetectionProvider', 4 'mockFaceDetectionProvider',
5 ['third_party/WebKit/public/platform/modules/shapedetection/facedetection.mojo m', 5 ['services/shape_detection/public/interfaces/facedetection.mojom',
6 'third_party/WebKit/public/platform/modules/shapedetection/facedetection_prov ider.mojom', 6 'services/shape_detection/public/interfaces/facedetection_provider.mojom',
7 'mojo/public/js/bindings', 7 'mojo/public/js/bindings',
8 'mojo/public/js/core', 8 'mojo/public/js/core',
9 'content/public/renderer/frame_interfaces', 9 'content/public/renderer/frame_interfaces',
10 ], (faceDetection, faceDetectionProvider, bindings, mojo, interfaces) => { 10 ], (faceDetection, faceDetectionProvider, bindings, mojo, interfaces) => {
11 11
12 class MockFaceDetectionProvider { 12 class MockFaceDetectionProvider {
13 constructor() { 13 constructor() {
14 this.bindingSet_ = new bindings.BindingSet( 14 this.bindingSet_ = new bindings.BindingSet(
15 faceDetectionProvider.FaceDetectionProvider); 15 faceDetectionProvider.FaceDetectionProvider);
16 16
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 { x : 2.0, y: 2.0, width: 200.0, height: 200.0 }, 54 { x : 2.0, y: 2.0, width: 200.0, height: 200.0 },
55 { x : 3.0, y: 3.0, width: 300.0, height: 300.0 }, 55 { x : 3.0, y: 3.0, width: 300.0, height: 300.0 },
56 ] 56 ]
57 } 57 }
58 }); 58 });
59 mojo.unmapBuffer(receivedStruct.buffer); 59 mojo.unmapBuffer(receivedStruct.buffer);
60 } 60 }
61 } 61 }
62 return new MockFaceDetectionProvider(); 62 return new MockFaceDetectionProvider();
63 }); 63 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698