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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 visitor->trace(targetFrame); | 225 visitor->trace(targetFrame); |
226 } | 226 } |
227 | 227 |
228 PlatformTouchPoint point; | 228 PlatformTouchPoint point; |
229 RefPtrWillBeMember<EventTarget> touchTarget; | 229 RefPtrWillBeMember<EventTarget> touchTarget; |
230 RefPtrWillBeMember<LocalFrame> targetFrame; | 230 RefPtrWillBeMember<LocalFrame> targetFrame; |
231 FloatPoint adjustedPagePoint; | 231 FloatPoint adjustedPagePoint; |
232 FloatSize adjustedRadius; | 232 FloatSize adjustedRadius; |
233 bool knownTarget; | 233 bool knownTarget; |
234 bool consumed; | 234 bool consumed; |
| 235 String region; |
235 }; | 236 }; |
236 | 237 |
237 private: | 238 private: |
238 static DragState& dragState(); | 239 static DragState& dragState(); |
239 | 240 |
240 DataTransfer* createDraggingDataTransfer() const; | 241 DataTransfer* createDraggingDataTransfer() const; |
241 | 242 |
242 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H
itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for
ceLeave = false); | 243 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H
itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for
ceLeave = false); |
243 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults
&); | 244 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults
&); |
244 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In
putDeviceCapabilities* sourceCapabilities); | 245 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In
putDeviceCapabilities* sourceCapabilities); |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 IntPoint m_lastKnownMousePosition; | 430 IntPoint m_lastKnownMousePosition; |
430 IntPoint m_lastKnownMouseGlobalPosition; | 431 IntPoint m_lastKnownMouseGlobalPosition; |
431 IntPoint m_mouseDownPos; // In our view's coords. | 432 IntPoint m_mouseDownPos; // In our view's coords. |
432 double m_mouseDownTimestamp; | 433 double m_mouseDownTimestamp; |
433 PlatformMouseEvent m_mouseDown; | 434 PlatformMouseEvent m_mouseDown; |
434 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; | 435 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; |
435 | 436 |
436 // The target of each active touch point indexed by the touch ID. | 437 // The target of each active touch point indexed by the touch ID. |
437 using TouchTargetMap = WillBeHeapHashMap<unsigned, RefPtrWillBeMember<EventT
arget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned
>>; | 438 using TouchTargetMap = WillBeHeapHashMap<unsigned, RefPtrWillBeMember<EventT
arget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned
>>; |
438 TouchTargetMap m_targetForTouchID; | 439 TouchTargetMap m_targetForTouchID; |
| 440 using TouchRegionMap = WillBeHeapHashMap<unsigned, String, DefaultHash<unsig
ned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
| 441 TouchRegionMap m_regionForTouchID; |
439 | 442 |
440 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. | 443 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. |
441 RefPtrWillBeMember<Document> m_touchSequenceDocument; | 444 RefPtrWillBeMember<Document> m_touchSequenceDocument; |
442 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; | 445 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; |
443 | 446 |
444 bool m_touchPressed; | 447 bool m_touchPressed; |
445 | 448 |
446 PointerEventManager m_pointerEventManager; | 449 PointerEventManager m_pointerEventManager; |
447 | 450 |
448 // This is set upon sending a pointercancel for touch, prevents PE dispatche
s for touches until | 451 // This is set upon sending a pointercancel for touch, prevents PE dispatche
s for touches until |
(...skipping 26 matching lines...) Expand all Loading... |
475 // scroll which shouldn't propagate can't cause any element to | 478 // scroll which shouldn't propagate can't cause any element to |
476 // scroll other than the |m_previousGestureScrolledNode|. | 479 // scroll other than the |m_previousGestureScrolledNode|. |
477 bool m_deltaConsumedForScrollSequence; | 480 bool m_deltaConsumedForScrollSequence; |
478 }; | 481 }; |
479 | 482 |
480 } // namespace blink | 483 } // namespace blink |
481 | 484 |
482 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 485 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
483 | 486 |
484 #endif // EventHandler_h | 487 #endif // EventHandler_h |
OLD | NEW |