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

Unified Diff: third_party/WebKit/Source/core/input/MouseEventManager.h

Issue 2918053002: Move middle-click autoscroll to synthetic fling. (Closed)
Patch Set: Delete redundant cursor shape print Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/MouseEventManager.h
diff --git a/third_party/WebKit/Source/core/input/MouseEventManager.h b/third_party/WebKit/Source/core/input/MouseEventManager.h
index b0086b088bed3bfce98394abd99f86fdb2ea930d..0a1f7b406524bfee617a789b74c6b476c1897754 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.h
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.h
@@ -126,7 +126,9 @@ class CORE_EXPORT MouseEventManager final
// refactoring to be able to remove the dependency from EventHandler.
Node* GetNodeUnderMouse();
bool IsMousePositionUnknown();
+ // TODO(aelias): Make LastKnownMousePosition return FloatPoint.
IntPoint LastKnownMousePosition();
+ FloatPoint LastKnownMousePositionGlobal();
bool MousePressed();
void SetMousePressed(bool);
@@ -211,8 +213,8 @@ class CORE_EXPORT MouseEventManager final
// The last mouse movement position this frame has seen in root frame
// coordinates.
- IntPoint last_known_mouse_position_;
- IntPoint last_known_mouse_global_position_;
+ FloatPoint last_known_mouse_position_;
+ FloatPoint last_known_mouse_global_position_;
unsigned is_mouse_position_unknown_ : 1;
// Current button-press state for mouse/mouse-like-stylus.

Powered by Google App Engine
This is Rietveld 408576698