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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const PlatformMouseEvent&, | 58 const PlatformMouseEvent&, |
59 bool isFrameBoundaryTransition); | 59 bool isFrameBoundaryTransition); |
60 | 60 |
61 // Resets the internal state of this object. | 61 // Resets the internal state of this object. |
62 void clear(); | 62 void clear(); |
63 | 63 |
64 void elementRemoved(EventTarget*); | 64 void elementRemoved(EventTarget*); |
65 | 65 |
66 void setPointerCapture(int, EventTarget*); | 66 void setPointerCapture(int, EventTarget*); |
67 void releasePointerCapture(int, EventTarget*); | 67 void releasePointerCapture(int, EventTarget*); |
68 bool hasPointerCapture(int, EventTarget*); | 68 |
| 69 // See Element::hasPointerCapture(int). |
| 70 bool hasPointerCapture(int, const EventTarget*) const; |
| 71 |
| 72 // See Element::hasProcessedPointerCapture(int). |
| 73 bool hasProcessedPointerCapture(int, const EventTarget*) const; |
69 | 74 |
70 bool isActive(const int) const; | 75 bool isActive(const int) const; |
71 | 76 |
72 // Returns whether there is any touch on the screen. | 77 // Returns whether there is any touch on the screen. |
73 bool isAnyTouchActive() const; | 78 bool isAnyTouchActive() const; |
74 | 79 |
75 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in Even
tHandler is done. | 80 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in Even
tHandler is done. |
76 EventTarget* getMouseCapturingNode(); | 81 EventTarget* getMouseCapturingNode(); |
77 | 82 |
78 // Returns true if the primary pointerdown corresponding to the given | 83 // Returns true if the primary pointerdown corresponding to the given |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 PointerCapturingMap m_pointerCaptureTarget; | 193 PointerCapturingMap m_pointerCaptureTarget; |
189 PointerCapturingMap m_pendingPointerCaptureTarget; | 194 PointerCapturingMap m_pendingPointerCaptureTarget; |
190 | 195 |
191 PointerEventFactory m_pointerEventFactory; | 196 PointerEventFactory m_pointerEventFactory; |
192 TouchEventManager m_touchEventManager; | 197 TouchEventManager m_touchEventManager; |
193 }; | 198 }; |
194 | 199 |
195 } // namespace blink | 200 } // namespace blink |
196 | 201 |
197 #endif // PointerEventManager_h | 202 #endif // PointerEventManager_h |
OLD | NEW |