diff options
author | olilan@chromium.org <olilan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 19:20:42 +0000 |
---|---|---|
committer | olilan@chromium.org <olilan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-21 19:20:42 +0000 |
commit | 3306f26e85b0171ed176f4cacaa37b5b4ebb600c (patch) | |
tree | 19d9f435853bb0297f475889e9788feb21bcddcc /content/renderer/render_view_browsertest.cc | |
parent | ca5ac16a3a23a61140502ad46f3cf5565dfcc55e (diff) | |
download | chromium_src-3306f26e85b0171ed176f4cacaa37b5b4ebb600c.zip chromium_src-3306f26e85b0171ed176f4cacaa37b5b4ebb600c.tar.gz chromium_src-3306f26e85b0171ed176f4cacaa37b5b4ebb600c.tar.bz2 |
Allow tap gestures to open the IME on Android.
This CL allows tap gestures to cause the IME to be shown on Android
It uses the new didHandleGestureEvent of WebViewCient that was added in http://trac.webkit.org/changeset/129029
When the IME is shown, we need to receive a text input state update to ensure the IME has
the correct state. For this reason, the message to show the IME has been added as part of
ViewHostMsg_TextInputStateChanged. To this end, a new parameter has been added to UpdateTextInputState
to specify whether the updtae should cause the IME to be shown or not.
BUG=147226
Review URL: https://chromiumcodereview.appspot.com/10962011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158042 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_view_browsertest.cc')
-rw-r--r-- | content/renderer/render_view_browsertest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc index b37ccaf..fea4664 100644 --- a/content/renderer/render_view_browsertest.cc +++ b/content/renderer/render_view_browsertest.cc @@ -763,7 +763,7 @@ TEST_F(RenderViewImplTest, OnImeStateChanged) { // Update the IME status and verify if our IME backend sends an IPC message // to activate IMEs. - view()->UpdateTextInputState(); + view()->UpdateTextInputState(RenderWidget::DO_NOT_SHOW_IME); const IPC::Message* msg = render_thread_->sink().GetMessageAt(0); EXPECT_TRUE(msg != NULL); EXPECT_EQ(ViewHostMsg_TextInputStateChanged::ID, msg->type()); @@ -785,7 +785,7 @@ TEST_F(RenderViewImplTest, OnImeStateChanged) { // Update the IME status and verify if our IME backend sends an IPC message // to de-activate IMEs. - view()->UpdateTextInputState(); + view()->UpdateTextInputState(RenderWidget::DO_NOT_SHOW_IME); msg = render_thread_->sink().GetMessageAt(0); EXPECT_TRUE(msg != NULL); EXPECT_EQ(ViewHostMsg_TextInputStateChanged::ID, msg->type()); @@ -917,7 +917,7 @@ TEST_F(RenderViewImplTest, ImeComposition) { // Update the status of our IME back-end. // TODO(hbono): we should verify messages to be sent from the back-end. - view()->UpdateTextInputState(); + view()->UpdateTextInputState(RenderWidget::DO_NOT_SHOW_IME); ProcessPendingMessages(); render_thread_->sink().ClearMessages(); |