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

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

Issue 1019793011: ozone: evdev: Add absolute axis information to DeviceCapabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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_device_test_util.h
diff --git a/ui/events/ozone/evdev/event_device_test_util.h b/ui/events/ozone/evdev/event_device_test_util.h
index fecd44a130271b4d665c4451a307511c060e706e..46afb6ab865aa922bf80abe0bb23deff259db88b 100644
--- a/ui/events/ozone/evdev/event_device_test_util.h
+++ b/ui/events/ozone/evdev/event_device_test_util.h
@@ -5,10 +5,17 @@
#ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_TEST_UTIL_H_
#define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_TEST_UTIL_H_
+#include <linux/input.h>
+
namespace ui {
class EventDeviceInfo;
+struct DeviceAbsoluteAxis {
+ unsigned int code;
+ input_absinfo absinfo;
+};
+
struct DeviceCapabilities {
// Full sysfs path (readlink -f /sys/class/input/event*)
const char* path;
@@ -42,6 +49,10 @@ struct DeviceCapabilities {
const char* sw;
const char* led;
const char* ff;
+
+ // EVIOCGABS.
+ const DeviceAbsoluteAxis* abs_axis;
+ size_t abs_axis_count;
};
bool CapabilitiesToDeviceInfo(const DeviceCapabilities& capabilities,
« no previous file with comments | « ui/events/ozone/evdev/capture_device_capabilities.py ('k') | ui/events/ozone/evdev/event_device_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698