| 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" |
| 11 #include "core/input/TouchEventManager.h" | 11 #include "core/input/TouchEventManager.h" |
| 12 #include "public/platform/WebInputEventResult.h" | 12 #include "public/platform/WebInputEventResult.h" |
| 13 #include "public/platform/WebPointerProperties.h" | 13 #include "public/platform/WebPointerProperties.h" |
| 14 #include "wtf/Allocator.h" | 14 #include "wtf/Allocator.h" |
| 15 #include "wtf/HashMap.h" | 15 #include "wtf/HashMap.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class LocalFrame; | 19 class LocalFrame; |
| 20 | 20 |
| 21 // This class takes care of dispatching all pointer events and keeps track of | 21 // This class takes care of dispatching all pointer events and keeps track of |
| 22 // properties of active pointer events. | 22 // properties of active pointer events. |
| 23 class CORE_EXPORT PointerEventManager { | 23 class CORE_EXPORT PointerEventManager { |
| 24 WTF_MAKE_NONCOPYABLE(PointerEventManager); |
| 24 DISALLOW_NEW(); | 25 DISALLOW_NEW(); |
| 25 public: | 26 public: |
| 26 explicit PointerEventManager(LocalFrame*); | 27 explicit PointerEventManager(LocalFrame*); |
| 27 ~PointerEventManager(); | 28 ~PointerEventManager(); |
| 28 DECLARE_TRACE(); | 29 DECLARE_TRACE(); |
| 29 | 30 |
| 30 WebInputEventResult sendMousePointerEvent( | 31 WebInputEventResult sendMousePointerEvent( |
| 31 Node*, const AtomicString& type, | 32 Node*, const AtomicString& type, |
| 32 int clickCount, const PlatformMouseEvent&, | 33 int clickCount, const PlatformMouseEvent&, |
| 33 Node* relatedTarget, | 34 Node* relatedTarget, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 PointerCapturingMap m_pointerCaptureTarget; | 173 PointerCapturingMap m_pointerCaptureTarget; |
| 173 PointerCapturingMap m_pendingPointerCaptureTarget; | 174 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 174 PointerEventFactory m_pointerEventFactory; | 175 PointerEventFactory m_pointerEventFactory; |
| 175 TouchEventManager m_touchEventManager; | 176 TouchEventManager m_touchEventManager; |
| 176 | 177 |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 } // namespace blink | 180 } // namespace blink |
| 180 | 181 |
| 181 #endif // PointerEventManager_h | 182 #endif // PointerEventManager_h |
| OLD | NEW |