summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authorshouqun.liu@intel.com <shouqun.liu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 09:38:10 +0000
committershouqun.liu@intel.com <shouqun.liu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-27 09:38:10 +0000
commite5cb6eb75ab91b99335adacdabd6160d81ce00b1 (patch)
tree5012cb47f2dea079d08118e7bb8e0d564107e03b /android_webview
parent829764cfe65fec92ed60fed354f5862909278095 (diff)
downloadchromium_src-e5cb6eb75ab91b99335adacdabd6160d81ce00b1.zip
chromium_src-e5cb6eb75ab91b99335adacdabd6160d81ce00b1.tar.gz
chromium_src-e5cb6eb75ab91b99335adacdabd6160d81ce00b1.tar.bz2
[android_webview] Add IME support for test shell of WebView.
Enable IME/Softinput support for test shell of WebView. Invoke IME when tapping text input area. BUG= Review URL: https://chromiumcodereview.appspot.com/13065009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
index bf36c9a..c0063df 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/AwTestContainerView.java
@@ -12,6 +12,8 @@ import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
+import android.view.inputmethod.EditorInfo;
+import android.view.inputmethod.InputConnection;
import android.widget.FrameLayout;
import android.util.Log;
@@ -69,10 +71,26 @@ public class AwTestContainerView extends FrameLayout {
@Override
public void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) {
+ super.onFocusChanged(focused, direction, previouslyFocusedRect);
mAwContents.onFocusChanged(focused, direction, previouslyFocusedRect);
}
@Override
+ public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
+ return mAwContents.onCreateInputConnection(outAttrs);
+ }
+
+ @Override
+ public boolean onKeyUp(int keyCode, KeyEvent event) {
+ return mAwContents.onKeyUp(keyCode, event);
+ }
+
+ @Override
+ public boolean dispatchKeyEvent(KeyEvent event) {
+ return mAwContents.dispatchKeyEvent(event);
+ }
+
+ @Override
public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
mAwContents.onMeasure(widthMeasureSpec, heightMeasureSpec);
}