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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.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
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index 9a4be59666c24ad06241fa1cef9d647f00b7483f..2f8f25d73feb117c2080a0285adba076388bd7f7 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -648,6 +648,29 @@ void ChromeClientImpl::SetCursorOverridden(bool overridden) {
cursor_overridden_ = overridden;
}
+void ChromeClientImpl::AutoscrollStart(WebFloatPoint viewport_point,
+ LocalFrame* local_frame) {
+ LocalFrame& local_root = local_frame->LocalFrameRoot();
+ if (WebFrameWidgetBase* widget =
+ WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget())
+ widget->Client()->AutoscrollStart(viewport_point);
+}
+
+void ChromeClientImpl::AutoscrollFling(WebFloatSize velocity,
+ LocalFrame* local_frame) {
+ LocalFrame& local_root = local_frame->LocalFrameRoot();
+ if (WebFrameWidgetBase* widget =
+ WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget())
+ widget->Client()->AutoscrollFling(velocity);
+}
+
+void ChromeClientImpl::AutoscrollEnd(LocalFrame* local_frame) {
+ LocalFrame& local_root = local_frame->LocalFrameRoot();
+ if (WebFrameWidgetBase* widget =
+ WebLocalFrameImpl::FromFrame(&local_root)->FrameWidget())
+ widget->Client()->AutoscrollEnd();
+}
+
String ChromeClientImpl::AcceptLanguages() {
return web_view_->Client()->AcceptLanguages();
}
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698