| 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/input/BoundaryEventDispatcher.h" | 9 #include "core/input/BoundaryEventDispatcher.h" |
| 10 #include "core/page/DragActions.h" | 10 #include "core/page/DragActions.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 Member<MouseEventManager> m_mouseEventManager; | 164 Member<MouseEventManager> m_mouseEventManager; |
| 165 const PlatformMouseEvent* m_platformMouseEvent; | 165 const PlatformMouseEvent* m_platformMouseEvent; |
| 166 Member<EventTarget> m_exitedTarget; | 166 Member<EventTarget> m_exitedTarget; |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 // If the given element is a shadow host and its root has delegatesFocus=false | 169 // If the given element is a shadow host and its root has delegatesFocus=false |
| 170 // flag, slide focus to its inner element. Returns true if the resulting focus | 170 // flag, slide focus to its inner element. Returns true if the resulting focus |
| 171 // is different from the given element. | 171 // is different from the given element. |
| 172 bool slideFocusOnShadowHostIfNecessary(const Element&); | 172 bool slideFocusOnShadowHostIfNecessary(const Element&); |
| 173 | 173 |
| 174 bool dragHysteresisExceeded(const IntPoint&) const; | 174 bool dragThresholdExceeded(const IntPoint&) const; |
| 175 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator); | 175 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator); |
| 176 bool tryStartDrag(const MouseEventWithHitTestResults&); | 176 bool tryStartDrag(const MouseEventWithHitTestResults&); |
| 177 void clearDragDataTransfer(); | 177 void clearDragDataTransfer(); |
| 178 DataTransfer* createDraggingDataTransfer() const; | 178 DataTransfer* createDraggingDataTransfer() const; |
| 179 | 179 |
| 180 // NOTE: If adding a new field to this class please ensure that it is | 180 // NOTE: If adding a new field to this class please ensure that it is |
| 181 // cleared in |MouseEventManager::clear()|. | 181 // cleared in |MouseEventManager::clear()|. |
| 182 | 182 |
| 183 const Member<LocalFrame> m_frame; | 183 const Member<LocalFrame> m_frame; |
| 184 Member<ScrollManager> m_scrollManager; | 184 Member<ScrollManager> m_scrollManager; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 213 PlatformMouseEvent m_mouseDown; | 213 PlatformMouseEvent m_mouseDown; |
| 214 | 214 |
| 215 LayoutPoint m_dragStartPos; | 215 LayoutPoint m_dragStartPos; |
| 216 | 216 |
| 217 Timer<MouseEventManager> m_fakeMouseMoveEventTimer; | 217 Timer<MouseEventManager> m_fakeMouseMoveEventTimer; |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 } // namespace blink | 220 } // namespace blink |
| 221 | 221 |
| 222 #endif // MouseEventManager_h | 222 #endif // MouseEventManager_h |
| OLD | NEW |