summaryrefslogtreecommitdiffstats
path: root/content/port
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 /content/port
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 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index 29bc3ae..a7cc683 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -16,6 +16,7 @@
#include "ipc/ipc_listener.h"
#include "third_party/WebKit/public/web/WebPopupType.h"
#include "third_party/WebKit/public/web/WebTextDirection.h"
+#include "ui/base/ime/text_input_mode.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/range/range.h"
#include "ui/surface/transport_dib.h"
@@ -101,7 +102,8 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
// Updates the type of the input method attached to the view.
virtual void TextInputTypeChanged(ui::TextInputType type,
- bool can_compose_inline) = 0;
+ bool can_compose_inline,
+ ui::TextInputMode mode) = 0;
// Cancel the ongoing composition of the input method attached to the view.
virtual void ImeCancelComposition() = 0;