1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_TEST_UTIL_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_TEST_UTIL_H_
8 #include <linux/input.h>
12 class EventDeviceInfo
;
14 struct DeviceAbsoluteAxis
{
16 input_absinfo absinfo
;
19 struct DeviceCapabilities
{
20 // Full sysfs path (readlink -f /sys/class/input/event*)
23 // EVIOCGNAME (/sys/class/input/*/device/name)
26 // EVIOCGPHYS (/sys/class/input/*/device/phys)
29 // EVIOCGUNIQ (/sys/class/input/*/device/uniq)
32 // EVIOCGID (/sys/class/input/*/device/id)
38 // EVIOCGPROP (/sys/class/input/*/device/properties)
42 // EVIOCGBIT (/sys/class/input/*/device/capabilities)
54 const DeviceAbsoluteAxis
* abs_axis
;
55 size_t abs_axis_count
;
58 bool CapabilitiesToDeviceInfo(const DeviceCapabilities
& capabilities
,
59 EventDeviceInfo
* devinfo
);
61 extern const DeviceCapabilities kLinkKeyboard
;
62 extern const DeviceCapabilities kLinkTouchscreen
;
63 extern const DeviceCapabilities kLinkTouchpad
;
64 extern const DeviceCapabilities kHpUsbKeyboard
;
65 extern const DeviceCapabilities kHpUsbKeyboard_Extra
;
66 extern const DeviceCapabilities kLogitechUsbMouse
;
67 extern const DeviceCapabilities kMimoTouch2Touchscreen
;
68 extern const DeviceCapabilities kWacomIntuosPtS_Pen
;
69 extern const DeviceCapabilities kWacomIntuosPtS_Finger
;
70 extern const DeviceCapabilities kLogitechTouchKeyboardK400
;
71 extern const DeviceCapabilities kElo_TouchSystems_2700
;
72 extern const DeviceCapabilities kWilsonBeachActiveStylus
;
76 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_TEST_UTIL_H_