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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 const String& canvasRegionId, | 55 const String& canvasRegionId, |
56 const WebMouseEvent&); | 56 const WebMouseEvent&); |
57 | 57 |
58 // Resets the internal state of this object. | 58 // Resets the internal state of this object. |
59 void clear(); | 59 void clear(); |
60 | 60 |
61 void elementRemoved(EventTarget*); | 61 void elementRemoved(EventTarget*); |
62 | 62 |
63 void setPointerCapture(int, EventTarget*); | 63 void setPointerCapture(int, EventTarget*); |
64 void releasePointerCapture(int, EventTarget*); | 64 void releasePointerCapture(int, EventTarget*); |
65 void releasePointerCapture(int); | |
Navid Zolghadr
2017/04/10 17:16:14
I suggest having the same releaseMousePointerCaptu
lanwei
2017/05/17 13:56:00
Done.
| |
65 | 66 |
66 // See Element::hasPointerCapture(int). | 67 // See Element::hasPointerCapture(int). |
67 bool hasPointerCapture(int, const EventTarget*) const; | 68 bool hasPointerCapture(int, const EventTarget*) const; |
68 | 69 |
69 // See Element::hasProcessedPointerCapture(int). | 70 // See Element::hasProcessedPointerCapture(int). |
70 bool hasProcessedPointerCapture(int, const EventTarget*) const; | 71 bool hasProcessedPointerCapture(int, const EventTarget*) const; |
71 | 72 |
72 bool isActive(const int) const; | 73 bool isActive(const int) const; |
73 | 74 |
74 // Returns whether there is any touch on the screen. | 75 // Returns whether there is any touch on the screen. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
175 bool sendMouseEvent = false); | 176 bool sendMouseEvent = false); |
176 | 177 |
177 void removeTargetFromPointerCapturingMapping(PointerCapturingMap&, | 178 void removeTargetFromPointerCapturingMapping(PointerCapturingMap&, |
178 const EventTarget*); | 179 const EventTarget*); |
179 EventTarget* getEffectiveTargetForPointerEvent(EventTarget*, int); | 180 EventTarget* getEffectiveTargetForPointerEvent(EventTarget*, int); |
180 EventTarget* getCapturingNode(int); | 181 EventTarget* getCapturingNode(int); |
181 void removePointer(PointerEvent*); | 182 void removePointer(PointerEvent*); |
182 WebInputEventResult dispatchPointerEvent(EventTarget*, | 183 WebInputEventResult dispatchPointerEvent(EventTarget*, |
183 PointerEvent*, | 184 PointerEvent*, |
184 bool checkForListener = false); | 185 bool checkForListener = false); |
185 void releasePointerCapture(int); | |
186 // Returns true if capture target and pending capture target were different. | 186 // Returns true if capture target and pending capture target were different. |
187 bool getPointerCaptureState(int pointerId, | 187 bool getPointerCaptureState(int pointerId, |
188 EventTarget** pointerCaptureTarget, | 188 EventTarget** pointerCaptureTarget, |
189 EventTarget** pendingPointerCaptureTarget); | 189 EventTarget** pendingPointerCaptureTarget); |
190 | 190 |
191 // NOTE: If adding a new field to this class please ensure that it is | 191 // NOTE: If adding a new field to this class please ensure that it is |
192 // cleared in |PointerEventManager::clear()|. | 192 // cleared in |PointerEventManager::clear()|. |
193 | 193 |
194 const Member<LocalFrame> m_frame; | 194 const Member<LocalFrame> m_frame; |
195 | 195 |
(...skipping 29 matching lines...) Expand all Loading... | |
225 Member<MouseEventManager> m_mouseEventManager; | 225 Member<MouseEventManager> m_mouseEventManager; |
226 | 226 |
227 // The pointerId of the PointerEvent currently being dispatched within this | 227 // The pointerId of the PointerEvent currently being dispatched within this |
228 // frame or 0 if none. | 228 // frame or 0 if none. |
229 int m_dispatchingPointerId; | 229 int m_dispatchingPointerId; |
230 }; | 230 }; |
231 | 231 |
232 } // namespace blink | 232 } // namespace blink |
233 | 233 |
234 #endif // PointerEventManager_h | 234 #endif // PointerEventManager_h |
OLD | NEW |