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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 2786693002: Add PointerDetails to ui::MouseEvent's constructors (Closed)
Patch Set: mouse event constructor Created 3 years, 9 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: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index c071853f11cbd181038385f480a6c962d9271277..4c530a4ec8d73db6d416950a55ef18b410d17d96 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -218,7 +218,9 @@ void EventFactoryEvdev::DispatchMouseMoveEvent(
MouseEvent event(ui::ET_MOUSE_MOVED, gfx::Point(), gfx::Point(),
params.timestamp,
modifiers_.GetModifierFlags() | params.flags,
- /* changed_button_flags */ 0);
+ /* changed_button_flags */ 0,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE,
+ ui::PointerEvent::kMousePointerId));
event.set_location_f(location);
event.set_root_location_f(location);
event.set_source_device_id(params.device_id);
@@ -279,7 +281,9 @@ void EventFactoryEvdev::DispatchMouseButtonEvent(
MouseEvent event(params.down ? ui::ET_MOUSE_PRESSED : ui::ET_MOUSE_RELEASED,
gfx::Point(), gfx::Point(), params.timestamp,
modifiers_.GetModifierFlags() | flag | params.flags,
- /* changed_button_flags */ flag);
+ /* changed_button_flags */ flag,
+ ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE,
+ ui::PointerEvent::kMousePointerId));
event.set_location_f(location);
event.set_root_location_f(location);
event.set_source_device_id(params.device_id);

Powered by Google App Engine
This is Rietveld 408576698