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

Side by Side Diff: third_party/WebKit/LayoutTests/shapedetection/resources/mock-textdetection.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 mockTextDetectionReady = define( 3 let mockTextDetectionReady = define(
4 'mockTextDetection', 4 'mockTextDetection',
5 ['third_party/WebKit/public/platform/modules/shapedetection/textdetection.mojo m', 5 ['services/shape_detection/public/interfaces/textdetection.mojom',
6 'mojo/public/js/bindings', 6 'mojo/public/js/bindings',
7 'mojo/public/js/core', 7 'mojo/public/js/core',
8 'content/public/renderer/frame_interfaces', 8 'content/public/renderer/frame_interfaces',
9 ], (textDetection, bindings, mojo, interfaces) => { 9 ], (textDetection, bindings, mojo, interfaces) => {
10 10
11 class MockTextDetection { 11 class MockTextDetection {
12 constructor() { 12 constructor() {
13 this.bindingSet_ = new bindings.BindingSet(textDetection.TextDetection); 13 this.bindingSet_ = new bindings.BindingSet(textDetection.TextDetection);
14 14
15 interfaces.addInterfaceOverrideForTesting( 15 interfaces.addInterfaceOverrideForTesting(
(...skipping 18 matching lines...) Expand all
34 }); 34 });
35 mojo.unmapBuffer(receivedStruct.buffer); 35 mojo.unmapBuffer(receivedStruct.buffer);
36 } 36 }
37 37
38 getFrameData() { 38 getFrameData() {
39 return this.buffer_data_; 39 return this.buffer_data_;
40 } 40 }
41 } 41 }
42 return new MockTextDetection(); 42 return new MockTextDetection();
43 }); 43 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698