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..7a6d864c34f695b7dd3316f4302a242142fc6176 100644 |
--- a/third_party/WebKit/public/web/WebCompositionUnderline.h |
+++ b/third_party/WebKit/public/web/WebCompositionUnderline.h |
@@ -33,6 +33,9 @@ |
#include "../platform/WebColor.h" |
+#include <string> |
+#include <vector> |
+ |
namespace blink { |
// Class WebCompositionUnderline is intended to be used with WebWidget's |
@@ -50,7 +53,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 +80,7 @@ struct WebCompositionUnderline { |
WebColor color; |
bool thick; |
WebColor backgroundColor; |
+ std::vector<std::string> suggestions; |
}; |
} // namespace blink |