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

Unified Diff: public/platform/Platform.h

Issue 307733002: use enum to specify deviceSource for fling animation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/web/WebViewImpl.cpp ('k') | public/platform/WebGestureDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 8719bbd054a1fe29065cd74af81621532a6a02a1..ffc958c304dd10497fd0485350590bfb6e9bf3c7 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -40,6 +40,7 @@
#include "WebData.h"
#include "WebGamepadListener.h"
#include "WebGamepads.h"
+#include "WebGestureDevice.h"
#include "WebGraphicsContext3D.h"
#include "WebLocalizedString.h"
#include "WebLockOrientationCallback.h"
@@ -595,6 +596,15 @@ public:
// with |velocity| and already scrolled |cumulativeScroll| pixels.
virtual WebGestureCurve* createFlingAnimationCurve(int deviceSource, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0; }
+ // TODO(rjkroege): Remove at end of http://crbug.com/343327
dglazkov 2014/05/30 00:00:09 This doesn't need to be all bent to 80 chars. We'r
rjkroege 2014/05/30 01:00:20 Good to know. I'd fix except that I intend to dele
+ virtual WebGestureCurve* createFlingAnimationCurve(
+ WebGestureDevice deviceSource,
+ const WebFloatPoint& velocity,
+ const WebSize& cumulativeScroll)
+ {
+ return createFlingAnimationCurve(
+ (int)deviceSource, velocity, cumulativeScroll);
+ }
// WebRTC ----------------------------------------------------------
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/platform/WebGestureDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698