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

Unified Diff: ui/events/x/events_x.cc

Issue 2655303004: Add id properties to PointerEvent (Closed)
Patch Set: pointer id Created 3 years, 10 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
« ui/events/event.cc ('K') | « ui/events/test/event_generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/events_x.cc
diff --git a/ui/events/x/events_x.cc b/ui/events/x/events_x.cc
index 21606509016fbcbdd5936ae611813d48c2432e1a..6390c4a38aab3a46c47b50b0ae038c04165ca59c 100644
--- a/ui/events/x/events_x.cc
+++ b/ui/events/x/events_x.cc
@@ -160,7 +160,9 @@ PointerDetails GetTouchPointerDetailsFromNative(
GetTouchRadiusYFromXEvent(*native_event),
GetTouchForceFromXEvent(*native_event),
/* tilt_x */ 0.f,
- /* tilt_y */ 0.f);
+ /* tilt_y */ 0.f,
+ /* tangential_pressure */ 0.0f,
+ /* twist */ 0, GetTouchIdFromXEvent(*native_event));
mustaq 2017/02/27 16:02:26 Nit: odd formatting.
}
bool GetScrollOffsets(const base::NativeEvent& native_event,
« ui/events/event.cc ('K') | « ui/events/test/event_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698