| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |