#include "third_party/blink/renderer/modules/shapedetection/text_detector.h"
#include <utility>
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_detected_text.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_point_2d.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/geometry/dom_rect.h"
#include "third_party/blink/renderer/core/html/canvas/canvas_image_source.h"
#include "third_party/blink/renderer/core/workers/worker_thread.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
TextDetector* TextDetector::Create(ExecutionContext* context) { … }
TextDetector::TextDetector(ExecutionContext* context) : … { … }
ScriptPromise<IDLSequence<DetectedText>> TextDetector::detect(
ScriptState* script_state,
const V8ImageBitmapSource* image_source,
ExceptionState& exception_state) { … }
void TextDetector::OnDetectText(
ScriptPromiseResolver<IDLSequence<DetectedText>>* resolver,
Vector<shape_detection::mojom::blink::TextDetectionResultPtr>
text_detection_results) { … }
void TextDetector::OnTextServiceConnectionError() { … }
void TextDetector::Trace(Visitor* visitor) const { … }
}