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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.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/mojo/struct_traits_unittest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..00b1881920cc711cd5bbd8eec6ae95604a9c32d6 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -218,11 +218,10 @@ 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, details);
event.set_location_f(location);
event.set_root_location_f(location);
event.set_source_device_id(params.device_id);
- event.set_pointer_details(details);
DispatchUiEvent(&event);
}
@@ -279,11 +278,10 @@ 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, details);
event.set_location_f(location);
event.set_root_location_f(location);
event.set_source_device_id(params.device_id);
- event.set_pointer_details(details);
DispatchUiEvent(&event);
}
@@ -341,7 +339,6 @@ void EventFactoryEvdev::DispatchTouchEvent(const TouchEventParams& params) {
touch_event.set_location_f(location);
touch_event.set_root_location_f(location);
touch_event.set_source_device_id(params.device_id);
- touch_event.set_pointer_details(details);
DispatchUiEvent(&touch_event);
if (params.type == ET_TOUCH_RELEASED || params.type == ET_TOUCH_CANCELLED) {
« no previous file with comments | « ui/events/mojo/struct_traits_unittest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698