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

Unified Diff: cc/input/input_handler.h

Issue 2767213003: First Implementation of Snapped Points
Patch Set: Rebase and format Created 3 years, 6 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 | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.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 4e68a3d86e0749481d2cd9c0b5ec019efd253802..5acc14e5fc356ab4603c08350e0d010054f9160a 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -154,6 +154,11 @@ class CC_EXPORT InputHandler {
// ScrollBegin() returned SCROLL_STARTED.
virtual InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) = 0;
+ virtual void SnapAfterGestureScroll(const gfx::Point&) = 0;
+
+ virtual void FindSnappedOffset(gfx::Vector2dF* snapped_offset,
+ const gfx::Vector2dF& original_offset) = 0;
+
// Returns SCROLL_STARTED if a layer was actively being scrolled,
// SCROLL_IGNORED if not.
virtual ScrollStatus FlingScrollBegin() = 0;
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698