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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.h

Issue 2557513003: ShapeDetection: Eliminate DetectorType enum in ShapeDetector.cpp (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698