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

Unified Diff: ui/events/platform/x11/x11_event_source_libevent.cc

Issue 2103823003: Setting valid force value for touch events on Ozone on X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo changes in event.h, event_unittest.cc. Created 4 years, 6 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/platform/x11/x11_event_source_libevent.cc
diff --git a/ui/events/platform/x11/x11_event_source_libevent.cc b/ui/events/platform/x11/x11_event_source_libevent.cc
index cadf12152e244d0393caa96ea84060cea702dce9..87f990c57f28a16bb096db14e0930eec05f0eddd 100644
--- a/ui/events/platform/x11/x11_event_source_libevent.cc
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc
@@ -68,8 +68,15 @@ std::unique_ptr<ui::Event> TranslateXI2EventToEvent(const XEvent& xev) {
case ET_TOUCH_CANCELLED:
case ET_TOUCH_RELEASED:
return base::WrapUnique(
- new TouchEvent(event_type, EventLocationFromXEvent(xev),
- GetTouchIdFromXEvent(xev), EventTimeFromXEvent(xev)));
+ new TouchEvent(event_type,
+ EventLocationFromXEvent(xev),
+ /* flags */ 0,
+ GetTouchIdFromXEvent(xev),
+ EventTimeFromXEvent(xev),
+ GetTouchRadiusXFromXEvent(xev),
+ GetTouchRadiusYFromXEvent(xev),
+ /* angle */ 0.f,
+ GetTouchForceFromXEvent(xev)));
case ET_UNKNOWN:
return nullptr;
default:
« 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