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

Unified Diff: third_party/WebKit/public/web/WebCompositionUnderline.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/public/web/WebCompositionUnderline.h
diff --git a/third_party/WebKit/public/web/WebCompositionUnderline.h b/third_party/WebKit/public/web/WebCompositionUnderline.h
index 3252ec1d1a3cccaf5b43e83d1d6903c856dc9019..25c80ed179699751845b8799cb930478ffa50e5b 100644
--- a/third_party/WebKit/public/web/WebCompositionUnderline.h
+++ b/third_party/WebKit/public/web/WebCompositionUnderline.h
@@ -31,6 +31,8 @@
#ifndef WebCompositionUnderline_h
#define WebCompositionUnderline_h
+#include <string>
+#include <vector>
#include "../platform/WebColor.h"
namespace blink {
@@ -50,7 +52,20 @@ struct WebCompositionUnderline {
WebColor c,
bool t,
WebColor bc)
- : startOffset(s), endOffset(e), color(c), thick(t), backgroundColor(bc) {}
+ : WebCompositionUnderline(s, e, c, t, bc, std::vector<std::string>()) {}
+
+ WebCompositionUnderline(unsigned s,
+ unsigned e,
+ WebColor c,
+ bool t,
+ WebColor bc,
+ std::vector<std::string> su)
+ : startOffset(s),
+ endOffset(e),
+ color(c),
+ thick(t),
+ backgroundColor(bc),
+ suggestions(su) {}
bool operator<(const WebCompositionUnderline& other) const {
return startOffset != other.startOffset ? startOffset < other.startOffset
@@ -64,6 +79,7 @@ struct WebCompositionUnderline {
WebColor color;
bool thick;
WebColor backgroundColor;
+ std::vector<std::string> suggestions;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/platform/input_messages.mojom ('k') | third_party/WebKit/public/web/WebFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698