From b256eca653bf17bcbf08e7a11c37e736fe47a9b4 Mon Sep 17 00:00:00 2001 From: "yoichio@chromium.org" Date: Thu, 11 Jul 2013 10:57:40 +0000 Subject: 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 --- content/port/browser/render_widget_host_view_port.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content/port') 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; -- cgit v1.1