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

Unified Diff: cc/input/input_handler.h

Issue 1418493003: Let LayerTreeHostImpl::ScrollAnimated scroll the outer viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error for realz Created 5 years, 2 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/layers/layer_impl.cc » ('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 4696fb5ceca81d7c6cc4678935cc8317292d83bf..7b09cc169523e07085d8ec9848a461fefb058b4e 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -84,7 +84,7 @@ class CC_EXPORT InputHandler {
// This must be the last entry.
ScrollStatusCount
};
- enum ScrollInputType { GESTURE, WHEEL, NON_BUBBLING_GESTURE };
+ enum ScrollInputType { GESTURE, WHEEL, ANIMATED_WHEEL, NON_BUBBLING_GESTURE };
// 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
@@ -151,9 +151,8 @@ class CC_EXPORT InputHandler {
// Request another callback to InputHandlerClient::Animate().
virtual void SetNeedsAnimateInput() = 0;
- // If there is a scroll active, this reports whether the scroll is on the
- // root layer, or on some other sublayer.
- virtual bool IsCurrentlyScrollingRoot() const = 0;
+ // Returns true if there is an active scroll on the inner viewport layer.
+ virtual bool IsCurrentlyScrollingInnerViewport() const = 0;
// Whether the layer under |viewport_point| is the currently scrolling layer.
virtual bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point,
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698