| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 void removePointer(PointerEvent*); | 126 void removePointer(PointerEvent*); |
| 127 WebInputEventResult dispatchPointerEvent( | 127 WebInputEventResult dispatchPointerEvent( |
| 128 EventTarget*, | 128 EventTarget*, |
| 129 PointerEvent*, | 129 PointerEvent*, |
| 130 bool checkForListener = false); | 130 bool checkForListener = false); |
| 131 void releasePointerCapture(int); | 131 void releasePointerCapture(int); |
| 132 | 132 |
| 133 // Prevents firing mousedown, mousemove & mouseup in-between a canceled poin
terdown and next pointerup/pointercancel. | 133 // Prevents firing mousedown, mousemove & mouseup in-between a canceled poin
terdown and next pointerup/pointercancel. |
| 134 // See "PREVENT MOUSE EVENT flag" in the spec: | 134 // See "PREVENT MOUSE EVENT flag" in the spec: |
| 135 // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-e
vents | 135 // https://w3c.github.io/pointerevents/#compatibility-mapping-with-mouse-e
vents |
| 136 bool m_preventMouseEventForPointerTypeMouse; | 136 bool m_preventMouseEventForPointerType[static_cast<size_t>(WebPointerPropert
ies::PointerType::LastEntry) + 1]; |
| 137 | 137 |
| 138 // Note that this map keeps track of node under pointer with id=1 as well | 138 // Note that this map keeps track of node under pointer with id=1 as well |
| 139 // which might be different than m_nodeUnderMouse in EventHandler. That one | 139 // which might be different than m_nodeUnderMouse in EventHandler. That one |
| 140 // keeps track of any compatibility mouse event positions but this map for | 140 // keeps track of any compatibility mouse event positions but this map for |
| 141 // the pointer with id=1 is only taking care of true mouse related events. | 141 // the pointer with id=1 is only taking care of true mouse related events. |
| 142 HeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; | 142 HeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; |
| 143 | 143 |
| 144 PointerCapturingMap m_pointerCaptureTarget; | 144 PointerCapturingMap m_pointerCaptureTarget; |
| 145 PointerCapturingMap m_pendingPointerCaptureTarget; | 145 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 146 PointerEventFactory m_pointerEventFactory; | 146 PointerEventFactory m_pointerEventFactory; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // namespace blink | 149 } // namespace blink |
| 150 | 150 |
| 151 #endif // PointerEventManager_h | 151 #endif // PointerEventManager_h |
| OLD | NEW |