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