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

Unified Diff: cc/input_handler.h

Issue 11365238: cc: Return whether any layer was scrolled from InputHandlerClient::scrollBy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input_handler.h
diff --git a/cc/input_handler.h b/cc/input_handler.h
index 6898c1fb0625ade007185bb568ceeb346e777bce..fefa2ae2f8e142327482a9999e6e7162ba3a4116 100644
--- a/cc/input_handler.h
+++ b/cc/input_handler.h
@@ -41,9 +41,11 @@ public:
// should be in viewport (logical pixel) coordinates. Otherwise they are in
// scrolling layer's (logical pixel) space. If there is no room to move the
// layer in the requested direction, its first ancestor layer that can be
- // scrolled will be moved instead. Should only be called if scrollBegin()
- // returned ScrollStarted.
- virtual void scrollBy(gfx::Point, gfx::Vector2d) = 0;
+ // scrolled will be moved instead. If there is no layer can be moved in the
+ // requested direction at all, then false is returned. If any layer is
+ // moved, then true is returned.
+ // Should only be called if scrollBegin() returned ScrollStarted.
+ virtual bool scrollBy(gfx::Point, gfx::Vector2d) = 0;
// Stop scrolling the selected layer. Should only be called if scrollBegin()
// returned ScrollStarted.
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698