diff options
author | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 23:58:51 +0000 |
---|---|---|
committer | dtrainor@chromium.org <dtrainor@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-28 23:58:51 +0000 |
commit | 2384b6cb1000b2195bf62270d18ec33881b186fe (patch) | |
tree | caaf2742ff79a0df7de9a6bd2f73a5e2c33379ee /content/browser/android | |
parent | 7bb8f443297e0ef3e09c298a58adc6aebdf8a53f (diff) | |
download | chromium_src-2384b6cb1000b2195bf62270d18ec33881b186fe.zip chromium_src-2384b6cb1000b2195bf62270d18ec33881b186fe.tar.gz chromium_src-2384b6cb1000b2195bf62270d18ec33881b186fe.tar.bz2 |
Show the IME if needed on accessibility gestures
When the user performs an accessibilty gesture on Android, we don't show the IME if
a text input box was focused. This is basically a user action and we should show the
IME in this case.
BUG=179093
Review URL: https://chromiumcodereview.appspot.com/12316162
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/android')
-rw-r--r-- | content/browser/android/content_view_core_impl.cc | 5 | ||||
-rw-r--r-- | content/browser/android/content_view_core_impl.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc index 3435203..a5d5541 100644 --- a/content/browser/android/content_view_core_impl.cc +++ b/content/browser/android/content_view_core_impl.cc @@ -1186,6 +1186,11 @@ void ContentViewCoreImpl::EnableHidingTopControls(JNIEnv* env, jobject obj, host->Send(new ViewMsg_EnableHidingTopControls(host->GetRoutingID(), enable)); } +void ContentViewCoreImpl::ShowImeIfNeeded(JNIEnv* env, jobject obj) { + RenderViewHost* host = web_contents_->GetRenderViewHost(); + host->Send(new ViewMsg_ShowImeIfNeeded(host->GetRoutingID())); +} + void ContentViewCoreImpl::ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj) { RenderViewHost* host = web_contents_->GetRenderViewHost(); diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h index ca56b9b..29ba714 100644 --- a/content/browser/android/content_view_core_impl.h +++ b/content/browser/android/content_view_core_impl.h @@ -194,6 +194,7 @@ class ContentViewCoreImpl : public ContentViewCore, jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj); void ExitFullscreen(JNIEnv* env, jobject obj); void EnableHidingTopControls(JNIEnv* env, jobject obj, bool enable); + void ShowImeIfNeeded(JNIEnv* env, jobject obj); void ShowInterstitialPage(JNIEnv* env, jobject obj, |