summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/jni/WebViewCore.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-05-16 20:16:21 -0700
committerJohn Reck <jreck@google.com>2012-05-16 20:19:20 -0700
commit98db50b8d8923d319a1677bcba3784baeae03ab5 (patch)
treea561fea1c64eb4222c58327ff680101a9212581c /Source/WebKit/android/jni/WebViewCore.h
parentf0acbad2f51b0bd62dbc427b4f2fdc97e233edb9 (diff)
downloadexternal_webkit-98db50b8d8923d319a1677bcba3784baeae03ab5.zip
external_webkit-98db50b8d8923d319a1677bcba3784baeae03ab5.tar.gz
external_webkit-98db50b8d8923d319a1677bcba3784baeae03ab5.tar.bz2
Track where we want to click the mouse independently
Bug: 6490959 Change-Id: I920167cb16723f63132ecdb5581fb7a19e4461dd
Diffstat (limited to 'Source/WebKit/android/jni/WebViewCore.h')
-rw-r--r--Source/WebKit/android/jni/WebViewCore.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.h b/Source/WebKit/android/jni/WebViewCore.h
index c6b26c6..bfd9387 100644
--- a/Source/WebKit/android/jni/WebViewCore.h
+++ b/Source/WebKit/android/jni/WebViewCore.h
@@ -299,7 +299,8 @@ namespace android {
// scroll the selection on screen (if necessary).
void revealSelection();
- void moveMouse(int x, int y, WebCore::HitTestResult* hoveredNode = 0);
+ void moveMouse(int x, int y, WebCore::HitTestResult* hoveredNode = 0,
+ bool isClickCandidate = false);
// set the scroll amount that webview.java is currently showing
void setScrollOffset(bool sendScrollEvent, int dx, int dy);
@@ -766,6 +767,13 @@ namespace android {
int m_scrollOffsetY; // webview.java's current scroll in Y
double m_scrollSetTime; // when the scroll was last set
WebCore::IntPoint m_mousePos;
+ // This is the location at which we will click. This is tracked
+ // separately from m_mousePos, because m_mousePos may be updated
+ // in the interval between ACTION_UP and when the click fires since
+ // that occurs after a delay. This also works around potential hardware
+ // issues if we get onHoverEvents when using the touch screen, as that
+ // will nullify the slop checking we do in hitTest (aka, ACTION_DOWN)
+ WebCore::IntPoint m_mouseClickPos;
int m_screenWidth; // width of the visible rect in document coordinates
int m_screenHeight;// height of the visible rect in document coordinates
int m_textWrapWidth;