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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 if (!m_frame->page()->isCursorVisible()) | 296 if (!m_frame->page()->isCursorVisible()) |
297 return; | 297 return; |
298 | 298 |
299 PlatformMouseEvent fakeMouseMoveEvent( | 299 PlatformMouseEvent fakeMouseMoveEvent( |
300 m_lastKnownMousePosition, m_lastKnownMouseGlobalPosition, | 300 m_lastKnownMousePosition, m_lastKnownMouseGlobalPosition, |
301 WebPointerProperties::Button::NoButton, PlatformEvent::MouseMoved, 0, | 301 WebPointerProperties::Button::NoButton, PlatformEvent::MouseMoved, 0, |
302 static_cast<PlatformEvent::Modifiers>( | 302 static_cast<PlatformEvent::Modifiers>( |
303 KeyboardEventManager::getCurrentModifierState()), | 303 KeyboardEventManager::getCurrentModifierState()), |
304 PlatformMouseEvent::RealOrIndistinguishable, | 304 PlatformMouseEvent::RealOrIndistinguishable, |
305 monotonicallyIncreasingTime(), WebPointerProperties::PointerType::Mouse); | 305 monotonicallyIncreasingTime(), WebPointerProperties::PointerType::Mouse); |
306 m_frame->eventHandler().handleMouseMoveEvent(fakeMouseMoveEvent); | 306 Vector<PlatformMouseEvent> coalescedEvents; |
| 307 m_frame->eventHandler().handleMouseMoveEvent(fakeMouseMoveEvent, |
| 308 coalescedEvents); |
307 } | 309 } |
308 | 310 |
309 void MouseEventManager::cancelFakeMouseMoveEvent() { | 311 void MouseEventManager::cancelFakeMouseMoveEvent() { |
310 m_fakeMouseMoveEventTimer.stop(); | 312 m_fakeMouseMoveEventTimer.stop(); |
311 } | 313 } |
312 | 314 |
313 void MouseEventManager::setNodeUnderMouse( | 315 void MouseEventManager::setNodeUnderMouse( |
314 Node* target, | 316 Node* target, |
315 const PlatformMouseEvent& platformMouseEvent) { | 317 const PlatformMouseEvent& platformMouseEvent) { |
316 Node* lastNodeUnderMouse = m_nodeUnderMouse; | 318 Node* lastNodeUnderMouse = m_nodeUnderMouse; |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 996 |
995 void MouseEventManager::setClickCount(int clickCount) { | 997 void MouseEventManager::setClickCount(int clickCount) { |
996 m_clickCount = clickCount; | 998 m_clickCount = clickCount; |
997 } | 999 } |
998 | 1000 |
999 bool MouseEventManager::mouseDownMayStartDrag() { | 1001 bool MouseEventManager::mouseDownMayStartDrag() { |
1000 return m_mouseDownMayStartDrag; | 1002 return m_mouseDownMayStartDrag; |
1001 } | 1003 } |
1002 | 1004 |
1003 } // namespace blink | 1005 } // namespace blink |
OLD | NEW |