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

Side by Side Diff: third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.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 mockBarcodeDetectionReady = define( 3 let mockBarcodeDetectionReady = define(
4 'mockBarcodeDetection', 4 'mockBarcodeDetection',
5 ['third_party/WebKit/public/platform/modules/shapedetection/barcodedetection.m ojom', 5 ['services/shape_detection/public/interfaces/barcodedetection.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 ], (barcodeDetection, bindings, mojo, interfaces) => { 9 ], (barcodeDetection, bindings, mojo, interfaces) => {
10 10
11 class MockBarcodeDetection { 11 class MockBarcodeDetection {
12 constructor() { 12 constructor() {
13 this.bindingSet_ = new bindings.BindingSet( 13 this.bindingSet_ = new bindings.BindingSet(
14 barcodeDetection.BarcodeDetection); 14 barcodeDetection.BarcodeDetection);
15 15
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 }); 47 });
48 mojo.unmapBuffer(receivedStruct.buffer); 48 mojo.unmapBuffer(receivedStruct.buffer);
49 } 49 }
50 50
51 getFrameData() { 51 getFrameData() {
52 return this.buffer_data_; 52 return this.buffer_data_;
53 } 53 }
54 } 54 }
55 return new MockBarcodeDetection(); 55 return new MockBarcodeDetection();
56 }); 56 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698