Chromium Code Reviews| Index: services/shape_detection/text_detection_impl_mac.h |
| diff --git a/services/shape_detection/text_detection_impl_mac.h b/services/shape_detection/text_detection_impl_mac.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8645a271111b7330d2a961434d6edc63e6b344b0 |
| --- /dev/null |
| +++ b/services/shape_detection/text_detection_impl_mac.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_ |
| +#define SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_ |
| + |
| +#include "base/mac/scoped_nsobject.h" |
| +#include "services/shape_detection/public/interfaces/textdetection.mojom.h" |
| + |
| +@class CIDetector; |
| + |
| +namespace shape_detection { |
| + |
| +class TextDetectionImplMac : public shape_detection::mojom::TextDetection { |
| + public: |
| + TextDetectionImplMac(); |
| + ~TextDetectionImplMac() override; |
| + |
| + void Detect(mojo::ScopedSharedBufferHandle frame_data, |
| + uint32_t width, |
| + uint32_t height, |
| + const shape_detection::mojom::TextDetection::DetectCallback& |
|
Reilly Grant (use Gerrit)
2017/03/02 22:10:26
Since you are inside the scope of shape_detection:
mcasas
2017/03/02 23:27:50
Done here and elsewhere around these files.
|
| + callback) override; |
| + |
| + private: |
| + base::scoped_nsobject<CIDetector> detector_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(TextDetectionImplMac); |
| +}; |
| + |
| +} // namespace shape_detection |
| + |
| +#endif // SERVICES_SHAPE_DETECTION_TEXT_DETECTION_IMPL_MAC_H_ |