diff options
Diffstat (limited to 'WebKit/android/jni/WebViewCore.h')
-rw-r--r-- | WebKit/android/jni/WebViewCore.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/WebKit/android/jni/WebViewCore.h b/WebKit/android/jni/WebViewCore.h index 161b046..0338104 100644 --- a/WebKit/android/jni/WebViewCore.h +++ b/WebKit/android/jni/WebViewCore.h @@ -339,9 +339,17 @@ namespace android { /** * Handle motionUp event from the UI thread (called touchUp in the * WebCore thread). + * @param touchGeneration Generation number for touches so we can ignore + * touches when a newer one has been generated. + * @param frame Pointer to Frame containing the node that was touched. + * @param node Pointer to Node that was touched. + * @param x x-position of the touch. + * @param y y-position of the touch. + * @param scrollY Only used for <textarea>s (otherwise -1). Scroll position + * of the <textarea> so the touch point is used properly. */ void touchUp(int touchGeneration, WebCore::Frame* frame, - WebCore::Node* node, int x, int y); + WebCore::Node* node, int x, int y, int scrollY); /** * Sets the index of the label from a popup @@ -638,7 +646,16 @@ namespace android { SkPicture* rebuildPicture(const SkIRect& inval); void rebuildPictureSet(PictureSet* ); void sendNotifyProgressFinished(); - bool handleMouseClick(WebCore::Frame*, WebCore::Node*, bool); + /* + * Handle a mouse click, either from a touch or trackball press. + * @param frame Pointer to the Frame containing the node that was clicked on. + * @param node Pointer to the Node that was clicked on. + * @param fake This is a fake mouse click, used to put a textfield into focus. Do not + * open the IME. + * @param scrollY Used only when the node clicked on is a <textarea> (otherwise use + * -1). Scroll the <textarea> before handling the click. + */ + bool handleMouseClick(WebCore::Frame*, WebCore::Node*, bool fake, int scrollY); WebCore::HTMLAnchorElement* retrieveAnchorElement(int x, int y); WebCore::HTMLElement* retrieveElement(int x, int y, const WebCore::QualifiedName& ); |