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

Unified Diff: services/shape_detection/barcode_detection_impl_mac.h

Issue 2655303005: Shape detection service: Add QR detection in Mac (Closed)
Patch Set: Don't init explicitly a vector of vectors 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: services/shape_detection/barcode_detection_impl_mac.h
diff --git a/services/shape_detection/face_detection_impl_mac.h b/services/shape_detection/barcode_detection_impl_mac.h
similarity index 46%
copy from services/shape_detection/face_detection_impl_mac.h
copy to services/shape_detection/barcode_detection_impl_mac.h
index a67118ecf5b50e2d7c3fcd283402c51af6c1b313..3e854e50575fb474a7c2732971249b84b3477367 100644
--- a/services/shape_detection/face_detection_impl_mac.h
+++ b/services/shape_detection/barcode_detection_impl_mac.h
@@ -2,34 +2,34 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_SHAPE_DETECTION_FACE_DETECTION_IMPL_MAC_H_
-#define SERVICES_SHAPE_DETECTION_FACE_DETECTION_IMPL_MAC_H_
+#ifndef SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_
+#define SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_
#import <QuartzCore/QuartzCore.h>
#include "base/mac/scoped_nsobject.h"
-#include "services/shape_detection/public/interfaces/facedetection.mojom.h"
+#include "services/shape_detection/public/interfaces/barcodedetection.mojom.h"
namespace shape_detection {
-class FaceDetectionImplMac : public shape_detection::mojom::FaceDetection {
+class BarcodeDetectionImplMac
+ : public shape_detection::mojom::BarcodeDetection {
public:
- FaceDetectionImplMac(shape_detection::mojom::FaceDetectorOptionsPtr options);
- ~FaceDetectionImplMac() override;
+ BarcodeDetectionImplMac();
+ ~BarcodeDetectionImplMac() override;
void Detect(mojo::ScopedSharedBufferHandle frame_data,
uint32_t width,
uint32_t height,
- const shape_detection::mojom::FaceDetection::DetectCallback&
+ const shape_detection::mojom::BarcodeDetection::DetectCallback&
callback) override;
private:
- base::scoped_nsobject<CIContext> context_;
base::scoped_nsobject<CIDetector> detector_;
- DISALLOW_COPY_AND_ASSIGN(FaceDetectionImplMac);
+ DISALLOW_COPY_AND_ASSIGN(BarcodeDetectionImplMac);
};
} // namespace shape_detection
-#endif // SERVICES_SHAPE_DETECTION_FACE_DETECTION_IMPL_MAC_H_
+#endif // SERVICES_SHAPE_DETECTION_BARCODE_DETECTION_IMPL_MAC_H_
« no previous file with comments | « services/shape_detection/barcode_detection_impl.cc ('k') | services/shape_detection/barcode_detection_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698