summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/EventHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/page/EventHandler.h')
-rw-r--r--Source/WebCore/page/EventHandler.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/WebCore/page/EventHandler.h b/Source/WebCore/page/EventHandler.h
index 1d2d375c3..29dd9ce38 100644
--- a/Source/WebCore/page/EventHandler.h
+++ b/Source/WebCore/page/EventHandler.h
@@ -170,6 +170,10 @@ public:
#if ENABLE(TOUCH_ADJUSTMENT)
bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntPoint& targetPoint, Node*& targetNode);
bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSize& touchRadius, IntRect& targetArea, Node*& targetNode);
+
+ // FIXME: Add a gesture type parameter so that different candidate selection criteria may be used for
+ // different gesture types. Currently TouchAdjustment::nodeRespondsToTapGesture is used for all types.
+ bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPoint);
#endif
#if ENABLE(CONTEXT_MENUS)
@@ -226,6 +230,8 @@ public:
bool handleTouchEvent(const PlatformTouchEvent&);
#endif
+ static Node* targetNode(const HitTestResult&);
+
private:
#if ENABLE(DRAG_SUPPORT)
static DragState& dragState();
@@ -242,7 +248,6 @@ private:
bool handleMouseDoubleClickEvent(const PlatformMouseEvent&);
static Node* targetNode(const MouseEventWithHitTestResults&);
- static Node* targetNode(const HitTestResult&);
bool handleMousePressEvent(const MouseEventWithHitTestResults&);
bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&);
@@ -446,6 +451,11 @@ private:
TouchTargetMap m_originatingTouchPointTargets;
bool m_touchPressed;
#endif
+
+#if ENABLE(GESTURE_EVENTS)
+ RefPtr<Node> m_scrollGestureHandlingNode;
+#endif
+
double m_maxMouseMovedDuration;
PlatformEvent::Type m_baseEventType;
};