summaryrefslogtreecommitdiffstats
path: root/android_webview/javatests
diff options
context:
space:
mode:
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-13 10:04:06 +0000
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-13 10:04:06 +0000
commitb21e38eefffd748a2907892d7475193e2cda90ad (patch)
tree1bd4e0567e5a80cec6b6764fe63e51094948686f /android_webview/javatests
parent1cd3137196a6e66f2b5ac957f9a9a0c6244cf818 (diff)
downloadchromium_src-b21e38eefffd748a2907892d7475193e2cda90ad.zip
chromium_src-b21e38eefffd748a2907892d7475193e2cda90ad.tar.gz
chromium_src-b21e38eefffd748a2907892d7475193e2cda90ad.tar.bz2
Add touch event methods to AwContents
They simply call out directly to ContentViewCore counterparts, except onTouchEvent which also triggers hit test. BUG= Review URL: https://chromiumcodereview.appspot.com/11366208 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/javatests')
-rw-r--r--android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java
index 1abf4f7..a71103a4 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/WebKitHitTestTest.java
@@ -74,7 +74,7 @@ public class WebKitHitTestTest extends AndroidWebViewTestBase {
@Override
public void run() {
long eventTime = SystemClock.uptimeMillis();
- mAwContents.considerMotionEventForHitTest(MotionEvent.obtain(
+ mAwContents.onTouchEvent(MotionEvent.obtain(
eventTime, eventTime, MotionEvent.ACTION_DOWN,
(float)(mTestView.getRight() - mTestView.getLeft()) / 2,
(float)(mTestView.getBottom() - mTestView.getTop()) / 2,