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

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: 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 IntPoint m_mouseDownPos; // In our view's coords. 365 IntPoint m_mouseDownPos; // In our view's coords.
365 double m_mouseDownTimestamp; 366 double m_mouseDownTimestamp;
366 PlatformMouseEvent m_mouseDown; 367 PlatformMouseEvent m_mouseDown;
367 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; 368 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
368 369
369 RefPtr<Node> m_latchedWheelEventNode; 370 RefPtr<Node> m_latchedWheelEventNode;
370 bool m_widgetIsLatched; 371 bool m_widgetIsLatched;
371 372
372 RefPtr<Node> m_previousWheelScrolledNode; 373 RefPtr<Node> m_previousWheelScrolledNode;
373 374
374 typedef HashMap<int, RefPtr<EventTarget> > TouchTargetMap; 375 // The target of each active touch point indexed by the touch ID.
375 TouchTargetMap m_originatingTouchPointTargets; 376 typedef HashMap<unsigned, RefPtr<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > TouchTargetMap;
376 RefPtr<Document> m_originatingTouchPointDocument; 377 TouchTargetMap m_targetForTouchID;
377 unsigned m_originatingTouchPointTargetKey; 378
379 // If set, the document of the active touch sequence. Unset if no touch sequ ence active.
380 RefPtr<Document> m_touchSequenceDocument;
381
378 bool m_touchPressed; 382 bool m_touchPressed;
379 383
380 RefPtr<Node> m_scrollGestureHandlingNode; 384 RefPtr<Node> m_scrollGestureHandlingNode;
381 bool m_lastHitTestResultOverWidget; 385 bool m_lastHitTestResultOverWidget;
382 RefPtr<Node> m_previousGestureScrolledNode; 386 RefPtr<Node> m_previousGestureScrolledNode;
383 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; 387 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture;
384 388
385 double m_maxMouseMovedDuration; 389 double m_maxMouseMovedDuration;
386 PlatformEvent::Type m_baseEventType; 390 PlatformEvent::Type m_baseEventType;
387 bool m_didStartDrag; 391 bool m_didStartDrag;
388 392
389 bool m_longTapShouldInvokeContextMenu; 393 bool m_longTapShouldInvokeContextMenu;
390 394
391 Timer<EventHandler> m_activeIntervalTimer; 395 Timer<EventHandler> m_activeIntervalTimer;
392 double m_lastShowPressTimestamp; 396 double m_lastShowPressTimestamp;
393 RefPtr<Element> m_lastDeferredTapElement; 397 RefPtr<Element> m_lastDeferredTapElement;
394 }; 398 };
395 399
396 } // namespace WebCore 400 } // namespace WebCore
397 401
398 #endif // EventHandler_h 402 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698