Index: ui/events/devices/input_device.h |
diff --git a/ui/events/devices/input_device.h b/ui/events/devices/input_device.h |
index ee493eadea15044abfc768e4857e7acc1e5ed5d0..d671159a83384ba75751ad9dfe9a4d078fa23cf3 100644 |
--- a/ui/events/devices/input_device.h |
+++ b/ui/events/devices/input_device.h |
@@ -24,7 +24,12 @@ struct EVENTS_DEVICES_EXPORT InputDevice { |
// Creates an invalid input device. |
InputDevice(); |
- InputDevice(int id, InputDeviceType type); |
+ InputDevice(int id, InputDeviceType type, const std::string& name); |
+ InputDevice(int id, |
+ InputDeviceType type, |
+ const std::string& name, |
+ uint16_t vendor, |
+ uint16_t product); |
virtual ~InputDevice(); |
// ID of the device. This ID is unique between all input devices. |
@@ -32,6 +37,13 @@ struct EVENTS_DEVICES_EXPORT InputDevice { |
// The type of the input device. |
InputDeviceType type; |
+ |
+ // Name of the device. |
+ std::string name; |
+ |
+ // USB-style device identifiers, where available, or 0 if unavailable. |
+ uint16_t vendor_id; |
+ uint16_t product_id; |
}; |
} // namespace ui |