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

Unified Diff: ui/events/gestures/blink/web_gesture_curve_impl.cc

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.h ('k') | ui/events/gestures/fling_curve.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/blink/web_gesture_curve_impl.cc
diff --git a/ui/events/gestures/blink/web_gesture_curve_impl.cc b/ui/events/gestures/blink/web_gesture_curve_impl.cc
index 2f2997e8e47b331cd707624dbbfa4082660292a2..1fd91a64c77091b15cea4606e4d727fdae6aa4bc 100644
--- a/ui/events/gestures/blink/web_gesture_curve_impl.cc
+++ b/ui/events/gestures/blink/web_gesture_curve_impl.cc
@@ -153,4 +153,13 @@ bool WebGestureCurveImpl::Apply(double time,
return did_scroll && still_active;
}
+void WebGestureCurveImpl::ComputeTotalScrollOffset(gfx::Vector2dF& offset) {
+ curve_->ComputeTotalScrollOffset(offset);
+}
+
+bool WebGestureCurveImpl::ResetCurveBySnappedOffset(
+ const gfx::Vector2dF& offset) {
+ return curve_->ResetCurveBySnappedOffset(offset);
+}
+
} // namespace ui
« no previous file with comments | « ui/events/gestures/blink/web_gesture_curve_impl.h ('k') | ui/events/gestures/fling_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698