-
tdanderson@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=99947 Reviewed by Adam Barth. Source/WebCore: Currently a long-press gesture is used to dispatch a context menu (for platforms defining CONTEXT_MENUS) or to select text (for Android). Additionally, for platforms defining TOUCH_ADJUSTMENT, gesture target fuzzing is performed on the location and touch area of the long-press gesture. This CL will cause two-finger tap gestures to be handled in the same way as long-press gestures. The location and touch area of a two-finger tap gesture will correspond to the location and touch area of the first finger down; the location/area of the second finger will be ignored. Test: touchadjustment/touch-links-two-finger-tap.html * page/EventHandler.cpp: (WebCore::EventHandler::handleGestureLongPress): (WebCore): (WebCore::EventHandler::handleGestureForTextSelectionOrContextMenu): (WebCore::EventHandler::handleGestureTwoFingerTap): (WebCore::EventHandler::adjustGesturePosition): * page/EventHandler.h: (EventHandler): Source/WebKit/chromium: Set the area of a two-finger tap gesture to be the area of the enclosing rectangle for the first finger down. * src/WebInputEventConversion.cpp: (WebKit::PlatformGestureEventBuilder::PlatformGestureEventBuilder): LayoutTests: New layout test for dispatching context menus on a two-finger tap gesture when touch adjustment is enabled. * touchadjustment/touch-links-two-finger-tap-expected.txt: Added. * touchadjustment/touch-links-two-finger-tap.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a79bb3b7