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

Unified Diff: cc/input/input_handler.h

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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/input_handler.h
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h
index 04973d5e06a7fe0f6a3293df9ddee7a48431ed76..7be60a1e1a9587983264ad1d4e8c6a22e6c5275e 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/time.h"
#include "cc/base/cc_export.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"
namespace gfx {
class Point;
@@ -51,6 +52,10 @@ class CC_EXPORT InputHandlerClient {
virtual bool ScrollBy(gfx::Point viewport_point,
gfx::Vector2dF scroll_delta) = 0;
+ virtual bool ScrollVerticallyByPage(
+ gfx::Point viewport_point,
+ WebKit::WebScrollbar::ScrollDirection direction) = 0;
+
// Stop scrolling the selected layer. Should only be called if ScrollBegin()
// returned ScrollStarted.
virtual void ScrollEnd() = 0;
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698