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

Unified Diff: cc/input/input_handler.h

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 fda17cdeee35f6fb8560104a42f2556a94b21b13..b26934548b9454e1252a80a30f0af39252f6b5f3 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -24,12 +24,6 @@ namespace cc {
class LayerScrollOffsetDelegate;
-struct DidOverscrollParams {
- gfx::Vector2dF accumulated_overscroll;
- gfx::Vector2dF latest_overscroll_delta;
- gfx::Vector2dF current_fling_velocity;
-};
-
class CC_EXPORT InputHandlerClient {
public:
virtual ~InputHandlerClient() {}
@@ -41,7 +35,8 @@ class CC_EXPORT InputHandlerClient {
// Called when scroll deltas reaching the root scrolling layer go unused.
// The accumulated overscroll is scoped by the most recent call to
// InputHandler::ScrollBegin.
- virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
+ virtual void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll,
+ const gfx::Vector2dF& latest_overscroll_delta) = 0;
protected:
InputHandlerClient() {}
@@ -94,8 +89,6 @@ class CC_EXPORT InputHandler {
// ScrollIgnored if not.
virtual ScrollStatus FlingScrollBegin() = 0;
- virtual void NotifyCurrentFlingVelocity(const gfx::Vector2dF& velocity) = 0;
-
virtual void MouseMoveAt(const gfx::Point& mouse_position) = 0;
// Stop scrolling the selected layer. Should only be called if ScrollBegin()
« 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