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

Unified Diff: content/browser/renderer_host/ui_events_helper.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 years, 4 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/browser/renderer_host/ui_events_helper.cc
diff --git a/content/browser/renderer_host/ui_events_helper.cc b/content/browser/renderer_host/ui_events_helper.cc
index 7aa038e1dcc9e5d7061ac3b8c3d088053b16edc8..430b7a204e2d18d2f59e6c41da527f0035df545a 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -74,15 +74,12 @@ bool MakeUITouchEventsFromWebTouchEvents(
location = point.position;
else
location = point.screenPosition;
- ui::TouchEvent* uievent = new ui::TouchEvent(type,
- location,
- flags,
- point.id,
- timestamp,
- point.radiusX,
- point.radiusY,
- point.rotationAngle,
- point.force);
+ ui::TouchEvent* uievent = new ui::TouchEvent(
+ type, location, flags, point.id, timestamp, point.rotationAngle,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_TOUCH,
+ point.radiusX, point.radiusY, point.force,
+ /* tilt_x */ 0.0f,
+ /* tilt_y */ 0.0f));
uievent->set_latency(touch_with_latency.latency);
list->push_back(uievent);
}

Powered by Google App Engine
This is Rietveld 408576698