summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authoryoichio@chromium.org <yoichio@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-11 10:57:40 +0000
committeryoichio@chromium.org <yoichio@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-11 10:57:40 +0000
commitb256eca653bf17bcbf08e7a11c37e736fe47a9b4 (patch)
treeea40bf0711f762488a69066ad9c8d8ce9ceb0ccc /ui
parentf1ef8f759aaa4216a94fdfc9860f183680c7f7f7 (diff)
downloadchromium_src-b256eca653bf17bcbf08e7a11c37e736fe47a9b4.zip
chromium_src-b256eca653bf17bcbf08e7a11c37e736fe47a9b4.tar.gz
chromium_src-b256eca653bf17bcbf08e7a11c37e736fe47a9b4.tar.bz2
Add new parameter ui::TextInputMode to ViewHostMsg_TextInputTypeChanged IPC message.
Focused input element has new attribute inputmode, which tells browser to switch character type like "latin", "katakana". at RenderWidget::UpdateTextInputType(), 1. get WebKit::WebTextInputInfo, which has inputmode as WebString. 2. convert it to corresponding enum ui::TextInputMode this cl adds. 3. set it to IPC parameter extended. BUG=244758 Review URL: https://chromiumcodereview.appspot.com/18682002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/base/ime/text_input_mode.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ui/base/ime/text_input_mode.h b/ui/base/ime/text_input_mode.h
new file mode 100644
index 0000000..1344f61
--- /dev/null
+++ b/ui/base/ime/text_input_mode.h
@@ -0,0 +1,31 @@
+// Copyright 2013 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 UI_BASE_IME_TEXT_INPUT_MODE_H_
+#define UI_BASE_IME_TEXT_INPUT_MODE_H_
+
+namespace ui {
+
+// This mode corrensponds to inputmode
+// http://www.whatwg.org/specs/web-apps/current-work/#attr-fe-inputmode
+enum TextInputMode {
+ TEXT_INPUT_MODE_DEFAULT,
+ TEXT_INPUT_MODE_VERBATIM,
+ TEXT_INPUT_MODE_LATIN,
+ TEXT_INPUT_MODE_LATIN_NAME,
+ TEXT_INPUT_MODE_LATIN_PROSE,
+ TEXT_INPUT_MODE_FULL_WIDTH_LATIN,
+ TEXT_INPUT_MODE_KANA,
+ TEXT_INPUT_MODE_KATAKANA,
+ TEXT_INPUT_MODE_NUMERIC,
+ TEXT_INPUT_MODE_TEL,
+ TEXT_INPUT_MODE_EMAIL,
+ TEXT_INPUT_MODE_URL,
+
+ TEXT_INPUT_MODE_MAX = TEXT_INPUT_MODE_URL,
+};
+
+} // namespace ui
+
+#endif // UI_BASE_IME_TEXT_INPUT_TYPE_H_