| 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 MouseEventManager_h | 5 #ifndef MouseEventManager_h |
| 6 #define MouseEventManager_h | 6 #define MouseEventManager_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/dom/SynchronousMutationObserver.h" | 9 #include "core/dom/SynchronousMutationObserver.h" |
| 10 #include "core/input/BoundaryEventDispatcher.h" | 10 #include "core/input/BoundaryEventDispatcher.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // This class takes care of dispatching all mouse events and keeps track of | 32 // This class takes care of dispatching all mouse events and keeps track of |
| 33 // positions and states of mouse. | 33 // positions and states of mouse. |
| 34 class CORE_EXPORT MouseEventManager final | 34 class CORE_EXPORT MouseEventManager final |
| 35 : public GarbageCollectedFinalized<MouseEventManager>, | 35 : public GarbageCollectedFinalized<MouseEventManager>, |
| 36 public SynchronousMutationObserver { | 36 public SynchronousMutationObserver { |
| 37 WTF_MAKE_NONCOPYABLE(MouseEventManager); | 37 WTF_MAKE_NONCOPYABLE(MouseEventManager); |
| 38 USING_GARBAGE_COLLECTED_MIXIN(MouseEventManager); | 38 USING_GARBAGE_COLLECTED_MIXIN(MouseEventManager); |
| 39 | 39 |
| 40 public: | 40 public: |
| 41 MouseEventManager(LocalFrame&, ScrollManager&); | 41 MouseEventManager(LocalFrame*, ScrollManager*); |
| 42 virtual ~MouseEventManager(); | 42 virtual ~MouseEventManager(); |
| 43 DECLARE_TRACE(); | 43 DECLARE_TRACE(); |
| 44 | 44 |
| 45 WebInputEventResult dispatchMouseEvent(EventTarget*, | 45 WebInputEventResult dispatchMouseEvent(EventTarget*, |
| 46 const AtomicString&, | 46 const AtomicString&, |
| 47 const PlatformMouseEvent&, | 47 const PlatformMouseEvent&, |
| 48 EventTarget* relatedTarget, | 48 EventTarget* relatedTarget, |
| 49 bool checkForListener = false); | 49 bool checkForListener = false); |
| 50 | 50 |
| 51 WebInputEventResult setMousePositionAndDispatchMouseEvent( | 51 WebInputEventResult setMousePositionAndDispatchMouseEvent( |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 PlatformMouseEvent m_mouseDown; | 220 PlatformMouseEvent m_mouseDown; |
| 221 | 221 |
| 222 LayoutPoint m_dragStartPos; | 222 LayoutPoint m_dragStartPos; |
| 223 | 223 |
| 224 Timer<MouseEventManager> m_fakeMouseMoveEventTimer; | 224 Timer<MouseEventManager> m_fakeMouseMoveEventTimer; |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 } // namespace blink | 227 } // namespace blink |
| 228 | 228 |
| 229 #endif // MouseEventManager_h | 229 #endif // MouseEventManager_h |
| OLD | NEW |