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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 m_lastKnownMouseGlobalPosition = IntPoint(); | 94 m_lastKnownMouseGlobalPosition = IntPoint(); |
95 m_mousePressed = false; | 95 m_mousePressed = false; |
96 m_clickCount = 0; | 96 m_clickCount = 0; |
97 m_clickNode = nullptr; | 97 m_clickNode = nullptr; |
98 m_mouseDownPos = IntPoint(); | 98 m_mouseDownPos = IntPoint(); |
99 m_mouseDownTimestamp = TimeTicks(); | 99 m_mouseDownTimestamp = TimeTicks(); |
100 m_mouseDown = WebMouseEvent(); | 100 m_mouseDown = WebMouseEvent(); |
101 m_svgPan = false; | 101 m_svgPan = false; |
102 m_dragStartPos = LayoutPoint(); | 102 m_dragStartPos = LayoutPoint(); |
103 m_fakeMouseMoveEventTimer.stop(); | 103 m_fakeMouseMoveEventTimer.stop(); |
| 104 resetDragState(); |
104 } | 105 } |
105 | 106 |
106 MouseEventManager::~MouseEventManager() = default; | 107 MouseEventManager::~MouseEventManager() = default; |
107 | 108 |
108 DEFINE_TRACE(MouseEventManager) { | 109 DEFINE_TRACE(MouseEventManager) { |
109 visitor->trace(m_frame); | 110 visitor->trace(m_frame); |
110 visitor->trace(m_scrollManager); | 111 visitor->trace(m_scrollManager); |
111 visitor->trace(m_nodeUnderMouse); | 112 visitor->trace(m_nodeUnderMouse); |
112 visitor->trace(m_mousePressNode); | 113 visitor->trace(m_mousePressNode); |
113 visitor->trace(m_clickNode); | 114 visitor->trace(m_clickNode); |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 | 1040 |
1040 void MouseEventManager::setClickCount(int clickCount) { | 1041 void MouseEventManager::setClickCount(int clickCount) { |
1041 m_clickCount = clickCount; | 1042 m_clickCount = clickCount; |
1042 } | 1043 } |
1043 | 1044 |
1044 bool MouseEventManager::mouseDownMayStartDrag() { | 1045 bool MouseEventManager::mouseDownMayStartDrag() { |
1045 return m_mouseDownMayStartDrag; | 1046 return m_mouseDownMayStartDrag; |
1046 } | 1047 } |
1047 | 1048 |
1048 } // namespace blink | 1049 } // namespace blink |
OLD | NEW |