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

Unified Diff: ui/events/gesture_curve.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 | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/gestures/blink/web_gesture_curve_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_curve.h
diff --git a/ui/events/gesture_curve.h b/ui/events/gesture_curve.h
index 7300e32fc9106d5f527b795355e007bd68159b65..7950e2e8861cb05dec7fc2056b2afbe066d9548f 100644
--- a/ui/events/gesture_curve.h
+++ b/ui/events/gesture_curve.h
@@ -24,6 +24,10 @@ class EVENTS_BASE_EXPORT GestureCurve {
virtual bool ComputeScrollOffset(base::TimeTicks time,
gfx::Vector2dF* offset,
gfx::Vector2dF* velocity) = 0;
+
+ virtual void ComputeTotalScrollOffset(gfx::Vector2dF& offset) = 0;
+
+ virtual bool ResetCurveBySnappedOffset(const gfx::Vector2dF& offset) = 0;
};
} // namespace ui
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/gestures/blink/web_gesture_curve_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698