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

Unified Diff: third_party/WebKit/Source/web/CompositionUnderlineBuilder.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/web/CompositionUnderlineBuilder.h
diff --git a/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h b/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h
index dd483f150c505b070d289dd4616022e4f5032963..a48b8e4cb880b3faff38b4df378b96aee6edbb56 100644
--- a/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h
+++ b/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h
@@ -33,6 +33,7 @@
#include "core/editing/CompositionUnderline.h"
#include "public/web/WebCompositionUnderline.h"
+#include "wtf/text/WTFString.h"
namespace blink {
@@ -46,7 +47,11 @@ class CompositionUnderlineBuilder : public CompositionUnderline {
u.endOffset,
Color(u.color),
u.thick,
- Color(u.backgroundColor)) {}
+ Color(u.backgroundColor)) {
+ for (const std::string& suggestion : u.suggestions) {
+ m_suggestions.push_back(String::fromUTF8(suggestion.c_str()));
+ }
+ }
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698