| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const PlatformMouseEvent&, | 59 const PlatformMouseEvent&, |
| 60 PassRefPtrWillBeRawPtr<AbstractView>, bool isFrameBoundaryTransition); | 60 PassRefPtrWillBeRawPtr<AbstractView>, bool isFrameBoundaryTransition); |
| 61 | 61 |
| 62 // Clear all the existing ids. | 62 // Clear all the existing ids. |
| 63 void clear(); | 63 void clear(); |
| 64 | 64 |
| 65 void elementRemoved(EventTarget*); | 65 void elementRemoved(EventTarget*); |
| 66 void setPointerCapture(int, EventTarget*); | 66 void setPointerCapture(int, EventTarget*); |
| 67 void releasePointerCapture(int, EventTarget*); | 67 void releasePointerCapture(int, EventTarget*); |
| 68 bool isActive(const int); | 68 bool isActive(const int); |
| 69 WebPointerProperties::PointerType getPointerEventType(const int); |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 typedef WillBeHeapHashMap<int, RefPtrWillBeMember<EventTarget>> PointerCaptu
ringMap; | 72 typedef WillBeHeapHashMap<int, RefPtrWillBeMember<EventTarget>> PointerCaptu
ringMap; |
| 72 class EventTargetAttributes { | 73 class EventTargetAttributes { |
| 73 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 74 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 74 public: | 75 public: |
| 75 DEFINE_INLINE_TRACE() | 76 DEFINE_INLINE_TRACE() |
| 76 { | 77 { |
| 77 visitor->trace(target); | 78 visitor->trace(target); |
| 78 } | 79 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; | 142 WillBeHeapHashMap<int, EventTargetAttributes> m_nodeUnderPointer; |
| 142 | 143 |
| 143 PointerCapturingMap m_pointerCaptureTarget; | 144 PointerCapturingMap m_pointerCaptureTarget; |
| 144 PointerCapturingMap m_pendingPointerCaptureTarget; | 145 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 145 PointerEventFactory m_pointerEventFactory; | 146 PointerEventFactory m_pointerEventFactory; |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace blink | 149 } // namespace blink |
| 149 | 150 |
| 150 #endif // PointerEventManager_h | 151 #endif // PointerEventManager_h |
| OLD | NEW |