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

Unified Diff: third_party/WebKit/public/platform/WebGestureCurve.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 | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebGestureCurve.h
diff --git a/third_party/WebKit/public/platform/WebGestureCurve.h b/third_party/WebKit/public/platform/WebGestureCurve.h
index 758b2dc4cb563f982334fbc3cf72745b4f9a85e7..89807bb0326a795e456fd6e8bbdb69d7ad1de558 100644
--- a/third_party/WebKit/public/platform/WebGestureCurve.h
+++ b/third_party/WebKit/public/platform/WebGestureCurve.h
@@ -25,6 +25,10 @@
#ifndef WebGestureCurve_h
#define WebGestureCurve_h
+namespace gfx {
+class Vector2dF;
+}
+
namespace blink {
class WebGestureCurveTarget;
@@ -39,6 +43,8 @@ class WebGestureCurve {
// Returns false if curve has finished and can no longer be applied.
virtual bool Apply(double time, WebGestureCurveTarget*) = 0;
+ virtual void ComputeTotalScrollOffset(gfx::Vector2dF& offset) = 0;
+ virtual bool ResetCurveBySnappedOffset(const gfx::Vector2dF& offset) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698