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

Unified Diff: third_party/WebKit/public/platform/WebTextInputInfo.h

Issue 2422663002: Define WebTextInputMode as a enum in the public API. (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebTextInputMode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebTextInputInfo.h
diff --git a/third_party/WebKit/public/platform/WebTextInputInfo.h b/third_party/WebKit/public/platform/WebTextInputInfo.h
index 61f8ecc25cc994490440849f3fbbec68b2aef457..a950e4a9dcf4e9f76c3dabf3ffe72c4f4e5faad5 100644
--- a/third_party/WebKit/public/platform/WebTextInputInfo.h
+++ b/third_party/WebKit/public/platform/WebTextInputInfo.h
@@ -28,6 +28,7 @@
#include "WebCommon.h"
#include "WebString.h"
+#include "WebTextInputMode.h"
#include "WebTextInputType.h"
namespace blink {
@@ -54,8 +55,7 @@ struct WebTextInputInfo {
int compositionEnd;
// The inputmode attribute value of the currently focused input field.
- // This string is lower-case.
- WebString inputMode;
+ WebTextInputMode inputMode;
BLINK_PLATFORM_EXPORT bool equals(const WebTextInputInfo&) const;
@@ -65,7 +65,8 @@ struct WebTextInputInfo {
selectionStart(0),
selectionEnd(0),
compositionStart(-1),
- compositionEnd(-1) {}
+ compositionEnd(-1),
+ inputMode(kWebTextInputModeDefault) {}
};
inline bool operator==(const WebTextInputInfo& a, const WebTextInputInfo& b) {
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebTextInputMode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698