| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 visitor->trace(targetFrame); | 213 visitor->trace(targetFrame); |
| 214 } | 214 } |
| 215 | 215 |
| 216 PlatformTouchPoint point; | 216 PlatformTouchPoint point; |
| 217 RefPtrWillBeMember<EventTarget> touchTarget; | 217 RefPtrWillBeMember<EventTarget> touchTarget; |
| 218 RefPtrWillBeMember<LocalFrame> targetFrame; | 218 RefPtrWillBeMember<LocalFrame> targetFrame; |
| 219 FloatPoint adjustedPagePoint; | 219 FloatPoint adjustedPagePoint; |
| 220 FloatSize adjustedRadius; | 220 FloatSize adjustedRadius; |
| 221 bool knownTarget; | 221 bool knownTarget; |
| 222 bool consumed; | 222 bool consumed; |
| 223 String region; |
| 223 }; | 224 }; |
| 224 | 225 |
| 225 private: | 226 private: |
| 226 static DragState& dragState(); | 227 static DragState& dragState(); |
| 227 | 228 |
| 228 DataTransfer* createDraggingDataTransfer() const; | 229 DataTransfer* createDraggingDataTransfer() const; |
| 229 | 230 |
| 230 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H
itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for
ceLeave = false); | 231 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H
itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for
ceLeave = false); |
| 231 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults
&); | 232 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults
&); |
| 232 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In
putDeviceCapabilities* sourceCapabilities); | 233 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In
putDeviceCapabilities* sourceCapabilities); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 IntPoint m_mouseDownPos; // In our view's coords. | 419 IntPoint m_mouseDownPos; // In our view's coords. |
| 419 double m_mouseDownTimestamp; | 420 double m_mouseDownTimestamp; |
| 420 PlatformMouseEvent m_mouseDown; | 421 PlatformMouseEvent m_mouseDown; |
| 421 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; | 422 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; |
| 422 | 423 |
| 423 RefPtrWillBeMember<Node> m_previousWheelScrolledNode; | 424 RefPtrWillBeMember<Node> m_previousWheelScrolledNode; |
| 424 | 425 |
| 425 // The target of each active touch point indexed by the touch ID. | 426 // The target of each active touch point indexed by the touch ID. |
| 426 using TouchTargetMap = WillBeHeapHashMap<unsigned, RefPtrWillBeMember<EventT
arget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned
>>; | 427 using TouchTargetMap = WillBeHeapHashMap<unsigned, RefPtrWillBeMember<EventT
arget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned
>>; |
| 427 TouchTargetMap m_targetForTouchID; | 428 TouchTargetMap m_targetForTouchID; |
| 429 using TouchRegionMap = WillBeHeapHashMap<unsigned, String, DefaultHash<unsig
ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
| 430 TouchRegionMap m_regionForTouchID; |
| 428 | 431 |
| 429 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. | 432 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. |
| 430 RefPtrWillBeMember<Document> m_touchSequenceDocument; | 433 RefPtrWillBeMember<Document> m_touchSequenceDocument; |
| 431 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; | 434 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; |
| 432 | 435 |
| 433 bool m_touchPressed; | 436 bool m_touchPressed; |
| 434 | 437 |
| 435 PointerEventManager m_pointerEventManager; | 438 PointerEventManager m_pointerEventManager; |
| 436 | 439 |
| 437 // Prevents firing mousedown, mousemove & mouseup in-between a canceled poin
terdown and next pointerup/pointercancel. | 440 // Prevents firing mousedown, mousemove & mouseup in-between a canceled poin
terdown and next pointerup/pointercancel. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // scroll which shouldn't propagate can't cause any element to | 472 // scroll which shouldn't propagate can't cause any element to |
| 470 // scroll other than the |m_previousGestureScrolledNode|. | 473 // scroll other than the |m_previousGestureScrolledNode|. |
| 471 bool m_deltaConsumedForScrollSequence; | 474 bool m_deltaConsumedForScrollSequence; |
| 472 }; | 475 }; |
| 473 | 476 |
| 474 } // namespace blink | 477 } // namespace blink |
| 475 | 478 |
| 476 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 479 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
| 477 | 480 |
| 478 #endif // EventHandler_h | 481 #endif // EventHandler_h |
| OLD | NEW |