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

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

Issue 887743002: ozone: evdev: Set modifier flags on touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | 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 78d54daaae32f2d3a1889cbdd9318ca553e242e1..3ae161ff507cabc034629f6e81f0ff818447ec3f 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -157,8 +157,8 @@ void EventFactoryEvdev::DispatchTouchEvent(const TouchEventParams& params) {
&radius_y);
scoped_ptr<TouchEvent> touch_event(new TouchEvent(
- params.type, gfx::PointF(x, y),
- /* flags */ 0, params.touch_id, params.timestamp, radius_x, radius_y,
+ params.type, gfx::PointF(x, y), modifiers_.GetModifierFlags(),
+ params.touch_id, params.timestamp, radius_x, radius_y,
/* angle */ 0., params.pressure));
touch_event->set_source_device_id(params.device_id);
PostUiEvent(touch_event.Pass());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698