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

Unified Diff: cc/input/input_handler.h

Issue 1052773002: cc: Add a rails argument to InputHandler::ScrollBy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comiple Created 5 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') | no next file with comments »
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 81d91b871432f8500a6b9b46834e72c8a11c4d7d..f5b293237959006fe7e627edd59ab42918903e80 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -74,6 +74,11 @@ class CC_EXPORT InputHandler {
ScrollStatusCount
};
enum ScrollInputType { GESTURE, WHEEL, NON_BUBBLING_GESTURE };
+ enum RailsMode {
+ RAILS_MODE_FREE,
+ RAILS_MODE_HORIZONTAL,
+ RAILS_MODE_VERTICAL
+ };
// Binds a client to this handler to receive notifications. Only one client
// can be bound to an InputHandler. The client must live at least until the
@@ -103,9 +108,9 @@ class CC_EXPORT InputHandler {
// the root overscroll accumulated within this ScrollBegin() scope is reported
// in the return value's |accumulated_overscroll| field.
// Should only be called if ScrollBegin() returned SCROLL_STARTED.
- virtual InputHandlerScrollResult ScrollBy(
- const gfx::Point& viewport_point,
- const gfx::Vector2dF& scroll_delta) = 0;
+ virtual InputHandlerScrollResult ScrollBy(const gfx::Point& viewport_point,
+ const gfx::Vector2dF& scroll_delta,
+ RailsMode rails_mode) = 0;
virtual bool ScrollVerticallyByPage(const gfx::Point& viewport_point,
ScrollDirection direction) = 0;
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698