diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-23 21:36:14 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-23 21:36:14 +0000 |
commit | be782f5b6dbda3c47d6199a2ac9509f76dc1e97b (patch) | |
tree | 39ec1fdbea3f8018abf433da2224829c109314d6 /cc/input/input_handler.h | |
parent | d684905b131ab5ed8df3c236887ff336493f4c8f (diff) | |
download | chromium_src-be782f5b6dbda3c47d6199a2ac9509f76dc1e97b.zip chromium_src-be782f5b6dbda3c47d6199a2ac9509f76dc1e97b.tar.gz chromium_src-be782f5b6dbda3c47d6199a2ac9509f76dc1e97b.tar.bz2 |
Implement windows mousewheel scroll by page functionality
Windows has a system setting to enable vertical scrolling by page. This implements support for that feature in the compositor's input handling. "By page" means scrolling by a fraction of the visible content height.
BUG=180655
Review URL: https://chromiumcodereview.appspot.com/12582009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/input/input_handler.h')
-rw-r--r-- | cc/input/input_handler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h index 04973d5..7be60a1 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; |