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

Unified Diff: third_party/WebKit/Source/core/input/ScrollManager.cpp

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/ScrollManager.cpp
diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp
index 309d87caa37ee17e4fd55f672eec08a226ca84fb..c6db447d2dcceba269127a48499aba2e6457036f 100644
--- a/third_party/WebKit/Source/core/input/ScrollManager.cpp
+++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp
@@ -67,6 +67,11 @@ void ScrollManager::StopAutoscroll() {
controller->StopAutoscroll();
}
+void ScrollManager::StopMiddleClickAutoscroll() {
+ if (AutoscrollController* controller = GetAutoscrollController())
+ controller->StopMiddleClickAutoscroll(frame_);
+}
+
bool ScrollManager::MiddleClickAutoscrollInProgress() const {
return GetAutoscrollController() &&
GetAutoscrollController()->MiddleClickAutoscrollInProgress();
« no previous file with comments | « third_party/WebKit/Source/core/input/ScrollManager.h ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698