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

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: rjkroege cr 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 06dca7326e64106cd1cf47cbb08d0072f14d3557..8670a3223b8104d25d783567bf3755f45b305e6c 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 {
@@ -369,10 +370,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;
« no previous file with comments | « LayoutTests/fast/events/touch/multi-touch-partial-sequence-expected.txt ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698