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

Unified Diff: Source/core/page/EventHandler.h

Issue 259413003: Correctly handle touch events that contain touches not previously reported to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
Index: Source/core/page/EventHandler.h
diff --git a/Source/core/page/EventHandler.h b/Source/core/page/EventHandler.h
index 6340fc25d30a00f354489ba0f21b9de4985b507e..cd70a171a37fd6cb9c85ce2db33d8459dca55286 100644
--- a/Source/core/page/EventHandler.h
+++ b/Source/core/page/EventHandler.h
@@ -41,6 +41,7 @@
#include "platform/scroll/ScrollTypes.h"
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
+#include "wtf/HashTraits.h"
#include "wtf/RefPtr.h"
namespace WebCore {
@@ -371,10 +372,13 @@ private:
RefPtr<Node> m_previousWheelScrolledNode;
- typedef HashMap<int, RefPtr<EventTarget> > TouchTargetMap;
- TouchTargetMap m_originatingTouchPointTargets;
- RefPtr<Document> m_originatingTouchPointDocument;
- unsigned m_originatingTouchPointTargetKey;
+ // The target of each active touch point indexed by the touch ID.
+ typedef HashMap<unsigned, RefPtr<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > TouchTargetMap;
+ TouchTargetMap m_targetForTouchID;
+
+ // If set, the document of the active touch sequence. Unset if no touch sequence active.
+ RefPtr<Document> m_touchSequenceDocument;
+
bool m_touchPressed;
RefPtr<Node> m_scrollGestureHandlingNode;

Powered by Google App Engine
This is Rietveld 408576698