| Index: ui/events/devices/input_device.h
|
| diff --git a/ui/events/devices/input_device.h b/ui/events/devices/input_device.h
|
| index 70ae1924007306044af33db0ebb4c624ef171068..659103d72db089c51877466bff9b13e4f2fc5a4a 100644
|
| --- a/ui/events/devices/input_device.h
|
| +++ b/ui/events/devices/input_device.h
|
| @@ -24,7 +24,7 @@ struct EVENTS_DEVICES_EXPORT InputDevice {
|
| // Creates an invalid input device.
|
| InputDevice();
|
|
|
| - InputDevice(unsigned int id, InputDeviceType type);
|
| + InputDevice(unsigned int id, InputDeviceType type, const std::string& name);
|
| virtual ~InputDevice();
|
|
|
| // ID of the device. This ID is unique between all input devices.
|
| @@ -32,6 +32,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
|
|
|