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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 148453012: Chrome requires WebTouchPoint to store WebFloatPoint, instead of WebPoint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. Created 6 years, 9 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: 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;
« no previous file with comments | « content/common/input/synthetic_web_input_event_builders.h ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698