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

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

Issue 2918053002: Move middle-click autoscroll to synthetic fling. (Closed)
Patch Set: Clean up 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..9afdddcf8409b7f2ca2024029af42eb8632540f9 100644
--- a/third_party/WebKit/Source/core/input/MouseEventManager.h
+++ b/third_party/WebKit/Source/core/input/MouseEventManager.h
@@ -127,6 +127,7 @@ class CORE_EXPORT MouseEventManager final
Node* GetNodeUnderMouse();
bool IsMousePositionUnknown();
IntPoint LastKnownMousePosition();
bokan 2017/06/15 17:40:13 Should this eventually become a FloatPoint as well
aelias_OOO_until_Jul13 2017/06/15 22:19:54 Yes. I added a TODO.
+ FloatPoint LastKnownMousePositionGlobal();
bool MousePressed();
void SetMousePressed(bool);
@@ -211,8 +212,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