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

Unified Diff: third_party/WebKit/public/platform/WebTextInputMode.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/platform/WebTextInputInfo.h ('k') | ui/base/ime/text_input_mode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebTextInputMode.h
diff --git a/third_party/WebKit/public/platform/WebTextInputMode.h b/third_party/WebKit/public/platform/WebTextInputMode.h
new file mode 100644
index 0000000000000000000000000000000000000000..df2ce503bd4ccb3fd2a0ac434a3dda2de79194b2
--- /dev/null
+++ b/third_party/WebKit/public/platform/WebTextInputMode.h
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebTextInputMode_h
+#define WebTextInputMode_h
+
+namespace blink {
+
+// This mode corrensponds to inputmode
+// https://html.spec.whatwg.org/#attr-fe-inputmode
+enum WebTextInputMode {
+ kWebTextInputModeDefault,
+ kWebTextInputModeVerbatim,
+ kWebTextInputModeLatin,
+ kWebTextInputModeLatinName,
+ kWebTextInputModeLatinProse,
+ kWebTextInputModeFullWidthLatin,
+ kWebTextInputModeKana,
+ kWebTextInputModeKanaName,
+ kWebTextInputModeKataKana,
+ kWebTextInputModeNumeric,
+ kWebTextInputModeTel,
+ kWebTextInputModeEmail,
+ kWebTextInputModeUrl,
+ kWebTextInputModeMax = kWebTextInputModeUrl,
+};
+
+} // namespace blink
+
+#endif // WebTextInputMode_h
« no previous file with comments | « third_party/WebKit/public/platform/WebTextInputInfo.h ('k') | ui/base/ime/text_input_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698