Chromium Code Reviews| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 bool hasPointerCapture(int, const EventTarget*) const; | 61 bool hasPointerCapture(int, const EventTarget*) const; |
| 62 | 62 |
| 63 // See Element::hasProcessedPointerCapture(int). | 63 // See Element::hasProcessedPointerCapture(int). |
| 64 bool hasProcessedPointerCapture(int, const EventTarget*) const; | 64 bool hasProcessedPointerCapture(int, const EventTarget*) const; |
| 65 | 65 |
| 66 bool isActive(const int) const; | 66 bool isActive(const int) const; |
| 67 | 67 |
| 68 // Returns whether there is any touch on the screen. | 68 // Returns whether there is any touch on the screen. |
| 69 bool isAnyTouchActive() const; | 69 bool isAnyTouchActive() const; |
| 70 | 70 |
| 71 // Returns whether pointerId is for an active touch pointerevent and whether | |
| 72 // the last event was sent to the given frame. | |
| 73 bool isTouchPointerEventActiveOnFrame(int, LocalFrame*); | |
|
mustaq
2016/10/13 16:38:25
Again, there's nothing specific to pointerType=tou
Navid Zolghadr
2016/10/13 17:32:32
Done.
| |
| 74 | |
| 71 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in | 75 // TODO(crbug.com/625843): This can be hidden when mouse refactoring in |
| 72 // EventHandler is done. | 76 // EventHandler is done. |
| 73 EventTarget* getMouseCapturingNode(); | 77 EventTarget* getMouseCapturingNode(); |
| 74 | 78 |
| 75 // Returns true if the primary pointerdown corresponding to the given | 79 // Returns true if the primary pointerdown corresponding to the given |
| 76 // |uniqueTouchEventId| was canceled. Also drops stale ids from | 80 // |uniqueTouchEventId| was canceled. Also drops stale ids from |
| 77 // |m_touchIdsForCanceledPointerdowns|. | 81 // |m_touchIdsForCanceledPointerdowns|. |
| 78 bool primaryPointerdownCanceled(uint32_t uniqueTouchEventId); | 82 bool primaryPointerdownCanceled(uint32_t uniqueTouchEventId); |
| 79 | 83 |
| 80 private: | 84 private: |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 209 PointerCapturingMap m_pendingPointerCaptureTarget; | 213 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 210 | 214 |
| 211 PointerEventFactory m_pointerEventFactory; | 215 PointerEventFactory m_pointerEventFactory; |
| 212 Member<TouchEventManager> m_touchEventManager; | 216 Member<TouchEventManager> m_touchEventManager; |
| 213 Member<MouseEventManager> m_mouseEventManager; | 217 Member<MouseEventManager> m_mouseEventManager; |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 } // namespace blink | 220 } // namespace blink |
| 217 | 221 |
| 218 #endif // PointerEventManager_h | 222 #endif // PointerEventManager_h |
| OLD | NEW |