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

Unified Diff: third_party/WebKit/Source/core/editing/CompositionUnderline.h

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Uploading the latest version from my repo so I can reference it Created 3 years, 8 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/core/editing/CompositionUnderline.h
diff --git a/third_party/WebKit/Source/core/editing/CompositionUnderline.h b/third_party/WebKit/Source/core/editing/CompositionUnderline.h
index fc91fe8ddff087310907d68d21b4d6e1a0c924f1..edc07f8c2ff04437567942b3308a3b7be7494e69 100644
--- a/third_party/WebKit/Source/core/editing/CompositionUnderline.h
+++ b/third_party/WebKit/Source/core/editing/CompositionUnderline.h
@@ -41,12 +41,19 @@ class CORE_EXPORT CompositionUnderline {
const Color&,
bool thick,
const Color& backgroundColor);
+ CompositionUnderline(unsigned startOffset,
+ unsigned endOffset,
+ const Color&,
+ bool thick,
+ const Color& backgroundColor,
+ const Vector<String>& suggestions);
unsigned startOffset() const { return m_startOffset; }
unsigned endOffset() const { return m_endOffset; }
const Color& color() const { return m_color; }
bool thick() const { return m_thick; }
const Color& backgroundColor() const { return m_backgroundColor; }
+ const Vector<String>& suggestions() const { return m_suggestions; }
private:
unsigned m_startOffset;
@@ -54,6 +61,9 @@ class CORE_EXPORT CompositionUnderline {
Color m_color;
bool m_thick;
Color m_backgroundColor;
+ Vector<String> m_suggestions;
+
+ friend class CompositionUnderlineBuilder;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/CompositionUnderline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698