| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PointerEventManager_h | 5 #ifndef PointerEventManager_h |
| 6 #define PointerEventManager_h | 6 #define PointerEventManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/events/PointerEvent.h" | 9 #include "core/events/PointerEvent.h" |
| 10 #include "core/events/PointerEventFactory.h" | 10 #include "core/events/PointerEventFactory.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 const double width, const double height, | 38 const double width, const double height, |
| 39 const double clientX, const double clientY); | 39 const double clientX, const double clientY); |
| 40 | 40 |
| 41 void sendTouchCancelPointerEvent(PassRefPtrWillBeRawPtr<EventTarget>, | 41 void sendTouchCancelPointerEvent(PassRefPtrWillBeRawPtr<EventTarget>, |
| 42 const PlatformTouchPoint&); | 42 const PlatformTouchPoint&); |
| 43 | 43 |
| 44 // Sends node transition events (pointer|mouse)(out|leave|over|enter) to the
corresponding targets | 44 // Sends node transition events (pointer|mouse)(out|leave|over|enter) to the
corresponding targets |
| 45 void sendNodeTransitionEvents(PassRefPtrWillBeRawPtr<Node> exitedNode, | 45 void sendNodeTransitionEvents(PassRefPtrWillBeRawPtr<Node> exitedNode, |
| 46 PassRefPtrWillBeRawPtr<Node> enteredNode, | 46 PassRefPtrWillBeRawPtr<Node> enteredNode, |
| 47 const PlatformMouseEvent&, | 47 const PlatformMouseEvent&, |
| 48 PassRefPtrWillBeRawPtr<AbstractView>); | 48 PassRefPtrWillBeRawPtr<AbstractView>, bool); |
| 49 | 49 |
| 50 // Clear all the existing ids. | 50 // Clear all the existing ids. |
| 51 void clear(); | 51 void clear(); |
| 52 | 52 |
| 53 // May clear PREVENT MOUSE EVENT flag as per pointer event spec: | 53 // May clear PREVENT MOUSE EVENT flag as per pointer event spec: |
| 54 // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-eve
nts | 54 // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-eve
nts |
| 55 void conditionallyEnableMouseEventForPointerTypeMouse(unsigned); | 55 void conditionallyEnableMouseEventForPointerTypeMouse(unsigned); |
| 56 | 56 |
| 57 void elementRemoved(EventTarget*); | 57 void elementRemoved(EventTarget*); |
| 58 void setPointerCapture(int, EventTarget*); | 58 void setPointerCapture(int, EventTarget*); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; | 116 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; |
| 117 | 117 |
| 118 PointerCapturingMap m_pointerCaptureTarget; | 118 PointerCapturingMap m_pointerCaptureTarget; |
| 119 PointerCapturingMap m_pendingPointerCaptureTarget; | 119 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 120 PointerEventFactory m_pointerEventFactory; | 120 PointerEventFactory m_pointerEventFactory; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // PointerEventManager_h | 125 #endif // PointerEventManager_h |
| OLD | NEW |