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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse constructor Created 3 years, 8 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/ozone/evdev/event_factory_evdev.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index 8d690aacb66dee54a0235534ae3d8e747d45277a..7590741f2054786ef2a6e5ba721e5c20ee486800 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -1749,12 +1749,11 @@ LRESULT HWNDMessageHandler::OnPointerEvent(UINT message,
default:
NOTREACHED();
}
- ui::MouseEvent event(event_type, point, point, base::TimeTicks::Now(), flag,
- flag);
ui::PointerDetails pointer_details(
input_type, pointer_id, /* radius_x */ 0.0f, /* radius_y */ 0.0f,
pressure, tilt_x, tilt_y, /* tangential_pressure */ 0.0f, rotation);
- event.set_pointer_details(pointer_details);
+ ui::MouseEvent event(event_type, point, point, base::TimeTicks::Now(), flag,
+ flag, pointer_details);
event.SetClickCount(click_count);
// There are cases where the code handling the message destroys the
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698