OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/shapedetection/TextDetector.h" | 5 #include "modules/shapedetection/TextDetector.h" |
6 | 6 |
7 #include "core/dom/DOMException.h" | 7 #include "core/dom/DOMException.h" |
8 #include "core/dom/DOMRect.h" | 8 #include "core/geometry/DOMRect.h" |
9 #include "core/html/canvas/CanvasImageSource.h" | 9 #include "core/html/canvas/CanvasImageSource.h" |
10 #include "modules/shapedetection/DetectedText.h" | 10 #include "modules/shapedetection/DetectedText.h" |
11 #include "public/platform/InterfaceProvider.h" | 11 #include "public/platform/InterfaceProvider.h" |
12 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 TextDetector* TextDetector::create() { | 16 TextDetector* TextDetector::create() { |
17 return new TextDetector(); | 17 return new TextDetector(); |
18 } | 18 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 m_textServiceRequests.clear(); | 67 m_textServiceRequests.clear(); |
68 m_textService.reset(); | 68 m_textService.reset(); |
69 } | 69 } |
70 | 70 |
71 DEFINE_TRACE(TextDetector) { | 71 DEFINE_TRACE(TextDetector) { |
72 ShapeDetector::trace(visitor); | 72 ShapeDetector::trace(visitor); |
73 visitor->trace(m_textServiceRequests); | 73 visitor->trace(m_textServiceRequests); |
74 } | 74 } |
75 | 75 |
76 } // namespace blink | 76 } // namespace blink |
OLD | NEW |