| 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 bool hasPointerCapture(int, const EventTarget*) const; |
| 69 | 69 |
| 70 bool isActive(const int) const; | 70 bool isActive(const int) const; |
| 71 | 71 |
| 72 // Returns whether there is any touch on the screen. | 72 // Returns whether there is any touch on the screen. |
| 73 bool isAnyTouchActive() const; | 73 bool isAnyTouchActive() const; |
| 74 | 74 |
| 75 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in Even
tHandler is done. | 75 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in Even
tHandler is done. |
| 76 EventTarget* getMouseCapturingNode(); | 76 EventTarget* getMouseCapturingNode(); |
| 77 | 77 |
| 78 // Returns true if the primary pointerdown corresponding to the given | 78 // 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; | 188 PointerCapturingMap m_pointerCaptureTarget; |
| 189 PointerCapturingMap m_pendingPointerCaptureTarget; | 189 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 190 | 190 |
| 191 PointerEventFactory m_pointerEventFactory; | 191 PointerEventFactory m_pointerEventFactory; |
| 192 TouchEventManager m_touchEventManager; | 192 TouchEventManager m_touchEventManager; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace blink | 195 } // namespace blink |
| 196 | 196 |
| 197 #endif // PointerEventManager_h | 197 #endif // PointerEventManager_h |
| OLD | NEW |