Index: ui/events/ozone/evdev/event_device_info.h |
diff --git a/ui/events/ozone/evdev/event_device_info.h b/ui/events/ozone/evdev/event_device_info.h |
index 492539bd83a033d06564746c42404bda1ac63230..b767196984cccc952bf418664120ac41dfd82c86 100644 |
--- a/ui/events/ozone/evdev/event_device_info.h |
+++ b/ui/events/ozone/evdev/event_device_info.h |
@@ -22,9 +22,11 @@ namespace ui { |
// particular it knows which events the device can generate. |
class EVENTS_OZONE_EVDEV_EXPORT EventDeviceInfo { |
public: |
- EventDeviceInfo(); |
+ EventDeviceInfo(int id); |
~EventDeviceInfo(); |
+ int id() const { return id_; } |
spang
2014/09/29 23:54:35
This doesn't belong here - it isn't related to the
dnicoara
2014/09/30 18:23:27
Done.
|
+ |
// Initialize device information from an open device. |
bool Initialize(int fd); |
@@ -55,6 +57,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventDeviceInfo { |
bool IsMappedToScreen() const; |
private: |
+ int id_; |
unsigned long ev_bits_[EVDEV_BITS_TO_LONGS(EV_CNT)]; |
unsigned long key_bits_[EVDEV_BITS_TO_LONGS(KEY_CNT)]; |
unsigned long rel_bits_[EVDEV_BITS_TO_LONGS(REL_CNT)]; |