Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: Source/core/dom/EventRetargeter.h

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/EventNames.in ('k') | Source/core/dom/EventRetargeter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/core/dom/EventNames.in ('k') | Source/core/dom/EventRetargeter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698