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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 #include "core/rendering/style/RenderStyleConstants.h" 34 #include "core/rendering/style/RenderStyleConstants.h"
35 #include "platform/Cursor.h" 35 #include "platform/Cursor.h"
36 #include "platform/PlatformMouseEvent.h" 36 #include "platform/PlatformMouseEvent.h"
37 #include "platform/Timer.h" 37 #include "platform/Timer.h"
38 #include "platform/UserGestureIndicator.h" 38 #include "platform/UserGestureIndicator.h"
39 #include "platform/geometry/LayoutPoint.h" 39 #include "platform/geometry/LayoutPoint.h"
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "platform/scroll/ScrollTypes.h" 41 #include "platform/scroll/ScrollTypes.h"
42 #include "wtf/Forward.h" 42 #include "wtf/Forward.h"
43 #include "wtf/HashMap.h" 43 #include "wtf/HashMap.h"
44 #include "wtf/HashTraits.h"
44 #include "wtf/RefPtr.h" 45 #include "wtf/RefPtr.h"
45 46
46 namespace WebCore { 47 namespace WebCore {
47 48
48 class AutoscrollController; 49 class AutoscrollController;
49 class Clipboard; 50 class Clipboard;
50 class Document; 51 class Document;
51 class Element; 52 class Element;
52 class Event; 53 class Event;
53 class EventTarget; 54 class EventTarget;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 IntPoint m_mouseDownPos; // In our view's coords. 363 IntPoint m_mouseDownPos; // In our view's coords.
363 double m_mouseDownTimestamp; 364 double m_mouseDownTimestamp;
364 PlatformMouseEvent m_mouseDown; 365 PlatformMouseEvent m_mouseDown;
365 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; 366 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
366 367
367 RefPtr<Node> m_latchedWheelEventNode; 368 RefPtr<Node> m_latchedWheelEventNode;
368 bool m_widgetIsLatched; 369 bool m_widgetIsLatched;
369 370
370 RefPtr<Node> m_previousWheelScrolledNode; 371 RefPtr<Node> m_previousWheelScrolledNode;
371 372
372 typedef HashMap<int, RefPtr<EventTarget> > TouchTargetMap; 373 // The target of each active touch point indexed by the touch ID.
373 TouchTargetMap m_originatingTouchPointTargets; 374 typedef HashMap<unsigned, RefPtr<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > TouchTargetMap;
374 RefPtr<Document> m_originatingTouchPointDocument; 375 TouchTargetMap m_targetForTouchID;
375 unsigned m_originatingTouchPointTargetKey; 376
377 // If set, the document of the active touch sequence. Unset if no touch sequ ence active.
378 RefPtr<Document> m_touchSequenceDocument;
379
376 bool m_touchPressed; 380 bool m_touchPressed;
377 381
378 RefPtr<Node> m_scrollGestureHandlingNode; 382 RefPtr<Node> m_scrollGestureHandlingNode;
379 bool m_lastHitTestResultOverWidget; 383 bool m_lastHitTestResultOverWidget;
380 RefPtr<Node> m_previousGestureScrolledNode; 384 RefPtr<Node> m_previousGestureScrolledNode;
381 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; 385 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture;
382 386
383 double m_maxMouseMovedDuration; 387 double m_maxMouseMovedDuration;
384 PlatformEvent::Type m_baseEventType; 388 PlatformEvent::Type m_baseEventType;
385 bool m_didStartDrag; 389 bool m_didStartDrag;
386 390
387 bool m_longTapShouldInvokeContextMenu; 391 bool m_longTapShouldInvokeContextMenu;
388 392
389 Timer<EventHandler> m_activeIntervalTimer; 393 Timer<EventHandler> m_activeIntervalTimer;
390 double m_lastShowPressTimestamp; 394 double m_lastShowPressTimestamp;
391 RefPtr<Element> m_lastDeferredTapElement; 395 RefPtr<Element> m_lastDeferredTapElement;
392 }; 396 };
393 397
394 } // namespace WebCore 398 } // namespace WebCore
395 399
396 #endif // EventHandler_h 400 #endif // EventHandler_h
OLDNEW
« 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