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 #include "core/input/MouseEventManager.h" | 5 #include "core/input/MouseEventManager.h" |
6 | 6 |
7 #include "core/clipboard/DataObject.h" | 7 #include "core/clipboard/DataObject.h" |
8 #include "core/clipboard/DataTransfer.h" | 8 #include "core/clipboard/DataTransfer.h" |
9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
10 #include "core/dom/ElementTraversal.h" | 10 #include "core/dom/ElementTraversal.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 if (!m_frame->page()->isCursorVisible()) | 299 if (!m_frame->page()->isCursorVisible()) |
300 return; | 300 return; |
301 | 301 |
302 PlatformMouseEvent fakeMouseMoveEvent( | 302 PlatformMouseEvent fakeMouseMoveEvent( |
303 m_lastKnownMousePosition, m_lastKnownMouseGlobalPosition, | 303 m_lastKnownMousePosition, m_lastKnownMouseGlobalPosition, |
304 WebPointerProperties::Button::NoButton, PlatformEvent::MouseMoved, 0, | 304 WebPointerProperties::Button::NoButton, PlatformEvent::MouseMoved, 0, |
305 static_cast<PlatformEvent::Modifiers>( | 305 static_cast<PlatformEvent::Modifiers>( |
306 KeyboardEventManager::getCurrentModifierState()), | 306 KeyboardEventManager::getCurrentModifierState()), |
307 PlatformMouseEvent::RealOrIndistinguishable, | 307 PlatformMouseEvent::RealOrIndistinguishable, |
308 monotonicallyIncreasingTime(), WebPointerProperties::PointerType::Mouse); | 308 monotonicallyIncreasingTime(), WebPointerProperties::PointerType::Mouse); |
309 m_frame->eventHandler().handleMouseMoveEvent(fakeMouseMoveEvent); | 309 Vector<PlatformMouseEvent> coalescedEvents; |
| 310 m_frame->eventHandler().handleMouseMoveEvent(fakeMouseMoveEvent, |
| 311 coalescedEvents); |
310 } | 312 } |
311 | 313 |
312 void MouseEventManager::cancelFakeMouseMoveEvent() { | 314 void MouseEventManager::cancelFakeMouseMoveEvent() { |
313 m_fakeMouseMoveEventTimer.stop(); | 315 m_fakeMouseMoveEventTimer.stop(); |
314 } | 316 } |
315 | 317 |
316 void MouseEventManager::setNodeUnderMouse( | 318 void MouseEventManager::setNodeUnderMouse( |
317 Node* target, | 319 Node* target, |
318 const PlatformMouseEvent& platformMouseEvent) { | 320 const PlatformMouseEvent& platformMouseEvent) { |
319 Node* lastNodeUnderMouse = m_nodeUnderMouse; | 321 Node* lastNodeUnderMouse = m_nodeUnderMouse; |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 | 991 |
990 void MouseEventManager::setClickCount(int clickCount) { | 992 void MouseEventManager::setClickCount(int clickCount) { |
991 m_clickCount = clickCount; | 993 m_clickCount = clickCount; |
992 } | 994 } |
993 | 995 |
994 bool MouseEventManager::mouseDownMayStartDrag() { | 996 bool MouseEventManager::mouseDownMayStartDrag() { |
995 return m_mouseDownMayStartDrag; | 997 return m_mouseDownMayStartDrag; |
996 } | 998 } |
997 | 999 |
998 } // namespace blink | 1000 } // namespace blink |
OLD | NEW |