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

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

Issue 1218663006: Use new WebTouchPoint field names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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: 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 d2f4c393950b25753f6e6587841db253838df85e..eb5ea0c1d6bb6b939249a0fe985cc35a8039a651 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -175,17 +175,17 @@ int SyntheticWebTouchEvent::PressPoint(float x, float y) {
if (touchesLength == touchesLengthCap)
return -1;
WebTouchPoint& point = touches[touchesLength];
- point.id = touchesLength;
+ point.pointerId = touchesLength;
point.position.x = point.screenPosition.x = x;
point.position.y = point.screenPosition.y = y;
point.state = WebTouchPoint::StatePressed;
- point.radiusX = point.radiusY = 1.f;
+ point.width = point.height = 1.f;
point.rotationAngle = 1.f;
- point.force = 1.f;
+ point.pressure = 1.f;
++touchesLength;
WebTouchEventTraits::ResetType(
WebInputEvent::TouchStart, timeStampSeconds, this);
- return point.id;
+ return point.pointerId;
}
void SyntheticWebTouchEvent::MovePoint(int index, float x, float y) {
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/touch_event_stream_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698