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