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

Unified Diff: webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc

Issue 12582009: Implement windows mousewheel scroll by page functionality (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix scroll distance calculation to more closely match windows behavior Created 7 years, 9 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
« cc/trees/layer_tree_host_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
diff --git a/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc b/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
index d079a0b57e3b0dccb9d5084b243dd9725c229459..dafde3c85dec289a9a31589c7fe2b2cb7870da64 100644
--- a/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
+++ b/webkit/compositor_bindings/web_to_ccinput_handler_adapter.cc
@@ -52,6 +52,11 @@ class WebToCCInputHandlerAdapter::ClientAdapter : public WebInputHandlerClient {
return client_->ScrollBy(point, delta);
}
+ virtual bool scrollVerticallyByPageIfPossible(
+ WebPoint point, WebScrollbar::ScrollDirection direction) {
+ return client_->ScrollVerticallyByPage(point, direction);
+ }
+
virtual void scrollEnd() { client_->ScrollEnd(); }
virtual void pinchGestureBegin() { client_->PinchGestureBegin(); }
« cc/trees/layer_tree_host_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698