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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 bool hasRecievedOverEvent; | 80 bool hasRecievedOverEvent; |
81 EventTargetAttributes() | 81 EventTargetAttributes() |
82 : target(nullptr) | 82 : target(nullptr) |
83 , hasRecievedOverEvent(false) {} | 83 , hasRecievedOverEvent(false) {} |
84 EventTargetAttributes(PassRefPtrWillBeRawPtr<EventTarget> target, | 84 EventTargetAttributes(PassRefPtrWillBeRawPtr<EventTarget> target, |
85 bool hasRecievedOverEvent) | 85 bool hasRecievedOverEvent) |
86 : target(target) | 86 : target(target) |
87 , hasRecievedOverEvent(hasRecievedOverEvent) {} | 87 , hasRecievedOverEvent(hasRecievedOverEvent) {} |
88 }; | 88 }; |
89 | 89 |
90 PlatformMouseEvent mouseEventWithRegion(Node*, const PlatformMouseEvent&); | |
dtapuska
2016/04/05 15:57:28
This seems like something that could just be in th
zino
2016/04/06 11:08:20
good point.
Done.
| |
91 | |
90 void sendNodeTransitionEvents( | 92 void sendNodeTransitionEvents( |
91 PassRefPtrWillBeRawPtr<EventTarget> exitedTarget, | 93 PassRefPtrWillBeRawPtr<EventTarget> exitedTarget, |
92 PassRefPtrWillBeRawPtr<EventTarget> enteredTarget, | 94 PassRefPtrWillBeRawPtr<EventTarget> enteredTarget, |
93 PassRefPtrWillBeRawPtr<PointerEvent>, | 95 PassRefPtrWillBeRawPtr<PointerEvent>, |
94 const PlatformMouseEvent& = PlatformMouseEvent(), | 96 const PlatformMouseEvent& = PlatformMouseEvent(), |
95 bool sendMouseEvent = false); | 97 bool sendMouseEvent = false); |
96 void setNodeUnderPointer(PassRefPtrWillBeRawPtr<PointerEvent>, | 98 void setNodeUnderPointer(PassRefPtrWillBeRawPtr<PointerEvent>, |
97 PassRefPtrWillBeRawPtr<EventTarget>, bool sendEvent = true); | 99 PassRefPtrWillBeRawPtr<EventTarget>, bool sendEvent = true); |
98 | 100 |
99 // Returns whether the pointer capture is changed. In this case this | 101 // Returns whether the pointer capture is changed. In this case this |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; | 143 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; |
142 | 144 |
143 PointerCapturingMap m_pointerCaptureTarget; | 145 PointerCapturingMap m_pointerCaptureTarget; |
144 PointerCapturingMap m_pendingPointerCaptureTarget; | 146 PointerCapturingMap m_pendingPointerCaptureTarget; |
145 PointerEventFactory m_pointerEventFactory; | 147 PointerEventFactory m_pointerEventFactory; |
146 }; | 148 }; |
147 | 149 |
148 } // namespace blink | 150 } // namespace blink |
149 | 151 |
150 #endif // PointerEventManager_h | 152 #endif // PointerEventManager_h |
OLD | NEW |