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

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

Issue 2871703003: Clear the state of scroll and selection onmouseup (Closed)
Patch Set: Remove redundant parameter Created 3 years, 7 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/dom/SynchronousMutationObserver.h" 9 #include "core/dom/SynchronousMutationObserver.h"
10 #include "core/input/BoundaryEventDispatcher.h" 10 #include "core/input/BoundaryEventDispatcher.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Resets the state that indicates the next events could cause a drag. It is 107 // Resets the state that indicates the next events could cause a drag. It is
108 // called when we realize the next events should not cause drag based on the 108 // called when we realize the next events should not cause drag based on the
109 // drag heuristics. 109 // drag heuristics.
110 void ClearDragHeuristicState(); 110 void ClearDragHeuristicState();
111 111
112 void DragSourceEndedAt(const WebMouseEvent&, DragOperation); 112 void DragSourceEndedAt(const WebMouseEvent&, DragOperation);
113 113
114 void UpdateSelectionForMouseDrag(); 114 void UpdateSelectionForMouseDrag();
115 115
116 void HandleMousePressEventUpdateStates(const WebMouseEvent&); 116 void HandleMousePressEventUpdateStates(const WebMouseEvent&);
117 void HandleMouseReleaseEventUpdateStates();
117 118
118 // Returns whether pan is handled and resets the state on release. 119 // Returns whether pan is handled and resets the state on release.
119 bool HandleSvgPanIfNeeded(bool is_release_event); 120 bool HandleSvgPanIfNeeded(bool is_release_event);
120 121
121 void InvalidateClick(); 122 void InvalidateClick();
122 123
123 // TODO: These functions ideally should be private but the code needs more 124 // TODO: These functions ideally should be private but the code needs more
124 // refactoring to be able to remove the dependency from EventHandler. 125 // refactoring to be able to remove the dependency from EventHandler.
125 Node* GetNodeUnderMouse(); 126 Node* GetNodeUnderMouse();
126 bool IsMousePositionUnknown(); 127 bool IsMousePositionUnknown();
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 WebMouseEvent mouse_down_; 233 WebMouseEvent mouse_down_;
233 234
234 LayoutPoint drag_start_pos_; 235 LayoutPoint drag_start_pos_;
235 236
236 TaskRunnerTimer<MouseEventManager> fake_mouse_move_event_timer_; 237 TaskRunnerTimer<MouseEventManager> fake_mouse_move_event_timer_;
237 }; 238 };
238 239
239 } // namespace blink 240 } // namespace blink
240 241
241 #endif // MouseEventManager_h 242 #endif // MouseEventManager_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandlerTest.cpp ('k') | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698