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

Unified Diff: third_party/WebKit/Source/core/page/AutoscrollController.h

Issue 2484563003: Determine the layoutobject of middleClickAutoscroll by the scroll direction. (Closed)
Patch Set: Better tests. Created 4 years, 1 month 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/page/AutoscrollController.h
diff --git a/third_party/WebKit/Source/core/page/AutoscrollController.h b/third_party/WebKit/Source/core/page/AutoscrollController.h
index b20c42dd70a5afab63209846587d997cdcc26895..85611a767f72597bb919ca0b32084cd772f8ef7a 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.h
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.h
@@ -27,6 +27,7 @@
#define AutoscrollController_h
#include "core/CoreExport.h"
+#include "platform/geometry/FloatSize.h"
#include "platform/geometry/IntPoint.h"
#include "platform/heap/Handle.h"
@@ -80,6 +81,7 @@ class CORE_EXPORT AutoscrollController final
void updateMiddleClickAutoscrollState(FrameView*,
const IntPoint& lastKnownMousePosition);
+ FloatSize calculateAutoscrollDelta();
Member<Page> m_page;
LayoutBox* m_autoscrollLayoutObject;
@@ -88,6 +90,7 @@ class CORE_EXPORT AutoscrollController final
IntPoint m_dragAndDropAutoscrollReferencePosition;
double m_dragAndDropAutoscrollStartTime;
IntPoint m_middleClickAutoscrollStartPos;
+ bool m_didLatchForMiddleClickAutoscroll;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/page/AutoscrollController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698