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

Side by Side Diff: third_party/WebKit/Source/modules/shapedetection/TextDetector.h

Issue 2875243002: RELAND: ShapeDetection: use mojom::Bitmap for mojo interface. (Closed)
Patch Set: RELAND2: ShapeDetection: use mojom::Bitmap for mojo interface. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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 #ifndef TextDetector_h 5 #ifndef TextDetector_h
6 #define TextDetector_h 6 #define TextDetector_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 static TextDetector* Create(); 23 static TextDetector* Create();
24 24
25 DECLARE_VIRTUAL_TRACE(); 25 DECLARE_VIRTUAL_TRACE();
26 26
27 private: 27 private:
28 TextDetector(); 28 TextDetector();
29 ~TextDetector() override = default; 29 ~TextDetector() override = default;
30 30
31 ScriptPromise DoDetect(ScriptPromiseResolver*, 31 ScriptPromise DoDetect(ScriptPromiseResolver*,
32 mojo::ScopedSharedBufferHandle, 32 skia::mojom::blink::BitmapPtr) override;
33 int image_width,
34 int image_height) override;
35 void OnDetectText( 33 void OnDetectText(
36 ScriptPromiseResolver*, 34 ScriptPromiseResolver*,
37 Vector<shape_detection::mojom::blink::TextDetectionResultPtr>); 35 Vector<shape_detection::mojom::blink::TextDetectionResultPtr>);
38 void OnTextServiceConnectionError(); 36 void OnTextServiceConnectionError();
39 37
40 shape_detection::mojom::blink::TextDetectionPtr text_service_; 38 shape_detection::mojom::blink::TextDetectionPtr text_service_;
41 39
42 HeapHashSet<Member<ScriptPromiseResolver>> text_service_requests_; 40 HeapHashSet<Member<ScriptPromiseResolver>> text_service_requests_;
43 }; 41 };
44 42
45 } // namespace blink 43 } // namespace blink
46 44
47 #endif // TextDetector_h 45 #endif // TextDetector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698