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

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

Issue 2484563003: Determine the layoutobject of middleClickAutoscroll by the scroll direction. (Closed)
Patch Set: Rename 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..dfef498cad032821b9bdbcde880e251e003c990c 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.h
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.h
@@ -72,6 +72,10 @@ class CORE_EXPORT AutoscrollController final
void handleMouseReleaseForMiddleClickAutoscroll(LocalFrame*,
const PlatformMouseEvent&);
void startMiddleClickAutoscroll(LayoutBox*, const IntPoint&);
+ bool setMiddleClickAutoscrollLayoutObject(LayoutBox*);
+ void setMiddleClickAutoscrolled(bool scrolled) {
+ m_middleClickAutoscrolled = scrolled;
+ };
private:
explicit AutoscrollController(Page&);
@@ -88,6 +92,7 @@ class CORE_EXPORT AutoscrollController final
IntPoint m_dragAndDropAutoscrollReferencePosition;
double m_dragAndDropAutoscrollStartTime;
IntPoint m_middleClickAutoscrollStartPos;
+ bool m_middleClickAutoscrolled;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698