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

Unified Diff: ui/events/gestures/fling_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/gestures/blink/web_gesture_curve_impl.cc ('k') | ui/events/gestures/fling_curve.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/fling_curve.h
diff --git a/ui/events/gestures/fling_curve.h b/ui/events/gestures/fling_curve.h
index 18a69d3070eb957fedae9bb142c577f7f0724edf..5fac06e7163e9405e821bd2afa9cd01d95e6b31a 100644
--- a/ui/events/gestures/fling_curve.h
+++ b/ui/events/gestures/fling_curve.h
@@ -32,6 +32,10 @@ class EVENTS_BASE_EXPORT FlingCurve : public GestureCurve {
// animation ticks.
bool ComputeScrollDeltaAtTime(base::TimeTicks current, gfx::Vector2dF* delta);
+ void ComputeTotalScrollOffset(gfx::Vector2dF& offset) override;
+
+ bool ResetCurveBySnappedOffset(const gfx::Vector2dF& offset) override;
+
private:
const float curve_duration_;
const base::TimeTicks start_timestamp_;
« no previous file with comments | « ui/events/gestures/blink/web_gesture_curve_impl.cc ('k') | ui/events/gestures/fling_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698