| 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/BoundaryEventDispatcher.h" | 11 #include "core/input/BoundaryEventDispatcher.h" |
| 12 #include "core/input/TouchEventManager.h" | 12 #include "core/input/TouchEventManager.h" |
| 13 #include "public/platform/WebInputEventResult.h" | 13 #include "public/platform/WebInputEventResult.h" |
| 14 #include "public/platform/WebPointerProperties.h" | 14 #include "public/platform/WebPointerProperties.h" |
| 15 #include "wtf/Allocator.h" | 15 #include "wtf/Allocator.h" |
| 16 #include "wtf/HashMap.h" | 16 #include "wtf/HashMap.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class LocalFrame; | 20 class LocalFrame; |
| 21 class MouseEventManager; | 21 class MouseEventManager; |
| 22 | 22 |
| 23 // This class takes care of dispatching all pointer events and keeps track of | 23 // This class takes care of dispatching all pointer events and keeps track of |
| 24 // properties of active pointer events. | 24 // properties of active pointer events. |
| 25 class CORE_EXPORT PointerEventManager | 25 class CORE_EXPORT PointerEventManager |
| 26 : public GarbageCollectedFinalized<PointerEventManager> { | 26 : public GarbageCollectedFinalized<PointerEventManager> { |
| 27 WTF_MAKE_NONCOPYABLE(PointerEventManager); | 27 WTF_MAKE_NONCOPYABLE(PointerEventManager); |
| 28 | 28 |
| 29 public: | 29 public: |
| 30 PointerEventManager(LocalFrame&, MouseEventManager&); | 30 PointerEventManager(LocalFrame*, MouseEventManager*); |
| 31 DECLARE_TRACE(); | 31 DECLARE_TRACE(); |
| 32 | 32 |
| 33 // Sends the mouse pointer events and the boundary events | 33 // Sends the mouse pointer events and the boundary events |
| 34 // that it may cause. It also sends the compat mouse events | 34 // that it may cause. It also sends the compat mouse events |
| 35 // and sets the newNodeUnderMouse if the capturing is set | 35 // and sets the newNodeUnderMouse if the capturing is set |
| 36 // in this function. | 36 // in this function. |
| 37 WebInputEventResult sendMousePointerEvent(Node* target, | 37 WebInputEventResult sendMousePointerEvent(Node* target, |
| 38 const AtomicString& type, | 38 const AtomicString& type, |
| 39 const PlatformMouseEvent&); | 39 const PlatformMouseEvent&); |
| 40 | 40 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 PointerCapturingMap m_pendingPointerCaptureTarget; | 217 PointerCapturingMap m_pendingPointerCaptureTarget; |
| 218 | 218 |
| 219 PointerEventFactory m_pointerEventFactory; | 219 PointerEventFactory m_pointerEventFactory; |
| 220 Member<TouchEventManager> m_touchEventManager; | 220 Member<TouchEventManager> m_touchEventManager; |
| 221 Member<MouseEventManager> m_mouseEventManager; | 221 Member<MouseEventManager> m_mouseEventManager; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 } // namespace blink | 224 } // namespace blink |
| 225 | 225 |
| 226 #endif // PointerEventManager_h | 226 #endif // PointerEventManager_h |
| OLD | NEW |