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

Unified Diff: ui/events/event.cc

Issue 1586653002: ui: Fix TouchEvent PointerDetails creation from NativeEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase following X event refactor Created 4 years, 11 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
« no previous file with comments | « ui/events/cocoa/events_mac.mm ('k') | ui/events/event_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index f4cf7cfd9faac42b3ce16af58e09e73c86101ee7..626c52cf5cc602abe53034e68f07564123822f69 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -524,12 +524,7 @@ TouchEvent::TouchEvent(const base::NativeEvent& native_event)
rotation_angle_(GetTouchAngle(native_event)),
may_cause_scrolling_(false),
should_remove_native_touch_id_mapping_(false),
- pointer_details_(PointerDetails(EventPointerType::POINTER_TYPE_TOUCH,
- GetTouchRadiusX(native_event),
- GetTouchRadiusY(native_event),
- GetTouchForce(native_event),
- /* tilt_x */ 0.0f,
- /* tilt_y */ 0.0f)) {
+ pointer_details_(GetTouchPointerDetailsFromNative(native_event)) {
latency()->AddLatencyNumberWithTimestamp(
INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 0, 0,
base::TimeTicks::FromInternalValue(time_stamp().ToInternalValue()), 1);
« no previous file with comments | « ui/events/cocoa/events_mac.mm ('k') | ui/events/event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698