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

Unified Diff: public/platform/Platform.h

Issue 1251473003: Add WebView API for smoothScroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index aa82c34ad3f228b6c1ba68d89694b3f43f71dc00..40677d4548c443218d961515ad5444122346e9bd 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -617,6 +617,10 @@ public:
// with |velocity| and already scrolled |cumulativeScroll| pixels.
virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSource, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return nullptr; }
+
+ virtual WebGestureCurve* createSmoothScrollAnimationCurve(
+ WebGestureDevice deviceSource, float startX, float startY, float dx, float dy, int64_t duration) { return 0; }
+
// WebRTC ----------------------------------------------------------
// Creates an WebRTCPeerConnectionHandler for RTCPeerConnection.

Powered by Google App Engine
This is Rietveld 408576698