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

Unified Diff: public/web/WebActiveWheelFlingParameters.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
Index: public/web/WebActiveWheelFlingParameters.h
diff --git a/public/web/WebActiveWheelFlingParameters.h b/public/web/WebActiveWheelFlingParameters.h
index 82a09a38a4048cdf7f5c31366fee9d53fbb172ef..a23f5d5b9ba627cf2b3fb3ec54e28423fb66083d 100644
--- a/public/web/WebActiveWheelFlingParameters.h
+++ b/public/web/WebActiveWheelFlingParameters.h
@@ -28,6 +28,7 @@
#include "../platform/WebCommon.h"
#include "../platform/WebFloatPoint.h"
+#include "../platform/WebGestureDevice.h"
#include "../platform/WebPoint.h"
#include "../platform/WebSize.h"
#include "WebInputEvent.h"
@@ -39,13 +40,15 @@ struct WebActiveWheelFlingParameters {
WebPoint point;
WebPoint globalPoint;
int modifiers;
- WebGestureEvent::SourceDevice sourceDevice;
+ // TODO(rjkroege): Restore typing once chromium side lands
+ // (http://crbug.com/343327)
+ int sourceDevice;
WebSize cumulativeScroll;
double startTime;
WebActiveWheelFlingParameters()
: modifiers(0)
- , sourceDevice(WebGestureEvent::Touchpad)
+ , sourceDevice(WebGestureDeviceTouchpad)
, startTime(0)
{
}

Powered by Google App Engine
This is Rietveld 408576698