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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
index dd28f6ae71cbe9f346f5ce01a0cffa1c5b816c3a..d72e2846ba69c960f18c882059bf4ae48fcaba08 100644
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp
@@ -11,7 +11,7 @@
#include "modules/shapedetection/DetectedFace.h"
#include "modules/shapedetection/FaceDetectorOptions.h"
#include "public/platform/InterfaceProvider.h"
-#include "public/platform/modules/shapedetection/facedetection_provider.mojom-blink.h"
+#include "services/shape_detection/public/interfaces/facedetection_provider.mojom-blink.h"
namespace blink {
@@ -23,11 +23,11 @@ FaceDetector* FaceDetector::create(Document& document,
FaceDetector::FaceDetector(LocalFrame& frame,
const FaceDetectorOptions& options)
: ShapeDetector(frame) {
- mojom::blink::FaceDetectorOptionsPtr faceDetectorOptions =
- mojom::blink::FaceDetectorOptions::New();
+ shape_detection::mojom::blink::FaceDetectorOptionsPtr faceDetectorOptions =
+ shape_detection::mojom::blink::FaceDetectorOptions::New();
faceDetectorOptions->max_detected_faces = options.maxDetectedFaces();
faceDetectorOptions->fast_mode = options.fastMode();
- mojom::blink::FaceDetectionProviderPtr provider;
+ shape_detection::mojom::blink::FaceDetectionProviderPtr provider;
frame.interfaceProvider()->getInterface(mojo::MakeRequest(&provider));
provider->CreateFaceDetection(mojo::MakeRequest(&m_faceService),
std::move(faceDetectorOptions));
@@ -57,7 +57,7 @@ ScriptPromise FaceDetector::doDetect(
void FaceDetector::onDetectFaces(
ScriptPromiseResolver* resolver,
- mojom::blink::FaceDetectionResultPtr faceDetectionResult) {
+ shape_detection::mojom::blink::FaceDetectionResultPtr faceDetectionResult) {
DCHECK(m_faceServiceRequests.contains(resolver));
m_faceServiceRequests.remove(resolver);

Powered by Google App Engine
This is Rietveld 408576698