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

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

Issue 2522143002: ShapeDetection: split mojom into face and barcode interfaces (Closed)
Patch Set: Created 4 years, 1 month 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/ShapeDetector.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h b/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h
index 66ee0d2e17692c3a296a2bc3147c2301c25a9691..40ba9dab2099a682decc31756d67683d52f992b1 100644
--- a/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h
+++ b/third_party/WebKit/Source/modules/shapedetection/ShapeDetector.h
@@ -10,7 +10,8 @@
#include "modules/ModulesExport.h"
#include "modules/canvas2d/CanvasRenderingContext2D.h"
#include "modules/shapedetection/FaceDetectorOptions.h"
-#include "public/platform/modules/shapedetection/shapedetection.mojom-blink.h"
+#include "public/platform/modules/shapedetection/barcodedetection.mojom-blink.h"
+#include "public/platform/modules/shapedetection/facedetection.mojom-blink.h"
namespace blink {
@@ -55,7 +56,8 @@ class MODULES_EXPORT ShapeDetector
void onDetectBarcodes(ScriptPromiseResolver*,
Vector<mojom::blink::BarcodeDetectionResultPtr>);
- mojom::blink::ShapeDetectionPtr m_service;
+ mojom::blink::FaceDetectionPtr m_faceService;
+ mojom::blink::BarcodeDetectionPtr m_barcodeService;
HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests;

Powered by Google App Engine
This is Rietveld 408576698