forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtext_detection_impl_mac.h
34 lines (23 loc) · 957 Bytes
/
text_detection_impl_mac.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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_
#import <os/availability.h>
#include "base/mac/scoped_nsobject.h"
#include "services/shape_detection/public/mojom/textdetection.mojom.h"
@class CIDetector;
namespace shape_detection {
class API_AVAILABLE(macosx(10.11)) TextDetectionImplMac
: public mojom::TextDetection {
public:
TextDetectionImplMac();
~TextDetectionImplMac() override;
void Detect(const SkBitmap& bitmap,
mojom::TextDetection::DetectCallback 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_