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

Unified Diff: ui/events/ozone/evdev/touch_evdev_types.h

Issue 2248933002: Support pen in TouchEventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 4 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/touch_evdev_types.h
diff --git a/ui/events/ozone/evdev/touch_evdev_types.h b/ui/events/ozone/evdev/touch_evdev_types.h
index 1efe0c62b415f87f4cb249e30c18d21b40c571c4..d49c406f82125caa3f86645308295dd9279d4979 100644
--- a/ui/events/ozone/evdev/touch_evdev_types.h
+++ b/ui/events/ozone/evdev/touch_evdev_types.h
@@ -39,6 +39,14 @@ struct EVENTS_OZONE_EVDEV_EXPORT InProgressTouchEvdev {
float radius_y = 0;
float pressure = 0;
int tool_code = 0;
+
+ struct ButtonState {
+ bool down = false;
+ bool changed = false;
+ };
+ ButtonState btn_left;
+ ButtonState btn_right;
+ ButtonState btn_middle;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698