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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/DetectedText.h

Issue 2588293005: Shape Detection: Add Text Detection in Chrome Android (Closed)
Patch Set: jochen@ comments, rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/shapedetection/DetectedText.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedText.h b/third_party/WebKit/Source/modules/shapedetection/DetectedText.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ad73163d139d9d15a31a5468977087c775c7c64
--- /dev/null
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedText.h
@@ -0,0 +1,38 @@
+// 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 DetectedText_h
+#define DetectedText_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/ModulesExport.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class DOMRect;
+
+class MODULES_EXPORT DetectedText final
+ : public GarbageCollectedFinalized<DetectedText>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static DetectedText* create();
+ static DetectedText* create(String, DOMRect*);
+
+ const String& rawValue() const;
+ DOMRect* boundingBox() const;
+ DECLARE_TRACE();
+
+ private:
+ DetectedText(String, DOMRect*);
+
+ const String m_rawValue;
+ const Member<DOMRect> m_boundingBox;
+};
+
+} // namespace blink
+
+#endif // DetectedText_h

Powered by Google App Engine
This is Rietveld 408576698