| Index: third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h
|
| diff --git a/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h b/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h
|
| index e8767457c207f7d15dcb49b4d5ad79c182a84bd5..a2cdedf6c94039d810a31b015b412d951bf181f5 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h
|
| @@ -11,6 +11,7 @@
|
| #include "modules/ModulesExport.h"
|
| #include "modules/canvas2d/CanvasRenderingContext2D.h"
|
| #include "modules/shapedetection/ShapeDetector.h"
|
| +#include "public/platform/modules/shapedetection/barcodedetection.mojom-blink.h"
|
|
|
| namespace blink {
|
|
|
| @@ -29,6 +30,15 @@ class MODULES_EXPORT BarcodeDetector final : public ShapeDetector,
|
| private:
|
| explicit BarcodeDetector(LocalFrame&);
|
| ~BarcodeDetector() override = default;
|
| +
|
| + void onDetectBarcodes(ScriptPromiseResolver*,
|
| + Vector<mojom::blink::BarcodeDetectionResultPtr>);
|
| + // Error handlers for use if mojo service doesn't connect.
|
| + void onBarcodeServiceConnectionError();
|
| +
|
| + mojom::blink::BarcodeDetectionPtr m_barcodeService;
|
| +
|
| + HeapHashSet<Member<ScriptPromiseResolver>> m_barcodeServiceRequests;
|
| };
|
|
|
| } // namespace blink
|
|
|