Index: content/common/input/synthetic_web_input_event_builders.cc |
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc |
index e2c29bfbe78b5a9bf7bacc2855b37ac13109e539..f5a8aa3f212d56e09cdc7fbae8a3127a1c90ee5d 100644 |
--- a/content/common/input/synthetic_web_input_event_builders.cc |
+++ b/content/common/input/synthetic_web_input_event_builders.cc |
@@ -159,7 +159,7 @@ void SyntheticWebTouchEvent::ResetPoints() { |
type = WebInputEvent::Undefined; |
} |
-int SyntheticWebTouchEvent::PressPoint(int x, int y) { |
+int SyntheticWebTouchEvent::PressPoint(float x, float y) { |
if (touchesLength == touchesLengthCap) |
return -1; |
WebTouchPoint& point = touches[touchesLength]; |
@@ -173,7 +173,7 @@ int SyntheticWebTouchEvent::PressPoint(int x, int y) { |
return point.id; |
} |
-void SyntheticWebTouchEvent::MovePoint(int index, int x, int y) { |
+void SyntheticWebTouchEvent::MovePoint(int index, float x, float y) { |
CHECK(index >= 0 && index < touchesLengthCap); |
WebTouchPoint& point = touches[index]; |
point.position.x = point.screenPosition.x = x; |