Index: Source/core/dom/EventRetargeter.h |
diff --git a/Source/core/dom/EventRetargeter.h b/Source/core/dom/EventRetargeter.h |
index 6b9fb139838cdcc76a1abc2c3eae25c79623771e..926a1a5b0584610a2ce64bd241d6bfcc69340384 100644 |
--- a/Source/core/dom/EventRetargeter.h |
+++ b/Source/core/dom/EventRetargeter.h |
@@ -39,7 +39,9 @@ class EventTarget; |
class FocusEvent; |
class MouseEvent; |
class Node; |
+#if ENABLE(TOUCH_EVENTS) |
class TouchEvent; |
+#endif |
class TreeScope; |
enum EventDispatchBehavior { |
@@ -52,8 +54,10 @@ public: |
static void calculateEventPath(Node*, Event*, EventPath&); |
static void adjustForMouseEvent(Node*, const MouseEvent&, EventPath&); |
static void adjustForFocusEvent(Node*, const FocusEvent&, EventPath&); |
+#if ENABLE(TOUCH_EVENTS) |
typedef Vector<RefPtr<TouchList> > EventPathTouchLists; |
static void adjustForTouchEvent(Node*, const TouchEvent&, EventPath&); |
+#endif |
static EventTarget* eventTargetRespectingTargetRules(Node* referenceNode); |
private: |
@@ -67,7 +71,9 @@ private: |
static void calculateAdjustedNodes(const Node*, const Node* relatedNode, EventWithRelatedTargetDispatchBehavior, EventPath&, AdjustedNodes&); |
static void buildRelatedNodeMap(const Node*, RelatedNodeMap&); |
static Node* findRelatedNode(TreeScope*, RelatedNodeMap&); |
+#if ENABLE(TOUCH_EVENTS) |
static void adjustTouchList(const Node*, const TouchList*, const EventPath&, EventPathTouchLists&); |
+#endif |
}; |
inline EventTarget* EventRetargeter::eventTargetRespectingTargetRules(Node* referenceNode) |