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

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

Issue 2522143002: ShapeDetection: split mojom into face and barcode interfaces (Closed)
Patch Set: Smart rebase to https://crrev.com/2527503003 (FaceDetectorOptions) 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 21ccd6b1a198ed327c585d3cb97de71e2d1816c2..20883f7396230754ea03f4b1288400889bc3bc7b 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 {
@@ -56,12 +57,13 @@ 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;
protected:
- mojom::blink::FaceDetectorOptionsPtr m_options;
+ mojom::blink::FaceDetectorOptionsPtr m_faceDetectorOptions;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698