Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: third_party/WebKit/Source/core/input/MouseEventManager.h

Issue 2401503002: Align drag threshold across content types. (Closed)
Patch Set: Addressed nits. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698