Index: ui/events/ozone/evdev/keyboard_evdev.h |
diff --git a/ui/events/ozone/evdev/keyboard_evdev.h b/ui/events/ozone/evdev/keyboard_evdev.h |
index 8b49ebb765bde7b0f6fb952944185c97219f71b6..2dd0792f1cfbacaadf3269cf0aa2962768ce798f 100644 |
--- a/ui/events/ozone/evdev/keyboard_evdev.h |
+++ b/ui/events/ozone/evdev/keyboard_evdev.h |
@@ -34,7 +34,10 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev { |
~KeyboardEvdev(); |
// Handlers for raw key presses & releases. |
- void OnKeyChange(unsigned int code, bool down, base::TimeDelta timestamp); |
+ void OnKeyChange(unsigned int code, |
+ bool down, |
+ base::TimeDelta timestamp, |
+ int device_id); |
// Handle Caps Lock modifier. |
void SetCapsLockEnabled(bool enabled); |
@@ -50,15 +53,16 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev { |
private: |
void UpdateModifier(int modifier_flag, bool down); |
void UpdateCapsLockLed(); |
- void UpdateKeyRepeat(unsigned int key, bool down); |
- void StartKeyRepeat(unsigned int key); |
+ void UpdateKeyRepeat(unsigned int key, bool down, int device_id); |
+ void StartKeyRepeat(unsigned int key, int device_id); |
void StopKeyRepeat(); |
void ScheduleKeyRepeat(const base::TimeDelta& delay); |
void OnRepeatTimeout(unsigned int sequence); |
void DispatchKey(unsigned int key, |
bool down, |
bool repeat, |
- base::TimeDelta timestamp); |
+ base::TimeDelta timestamp, |
+ int device_id); |
// Aggregated key state. There is only one bit of state per key; we do not |
// attempt to count presses of the same key on multiple keyboards. |
@@ -82,6 +86,7 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev { |
bool repeat_enabled_; |
unsigned int repeat_key_; |
unsigned int repeat_sequence_; |
+ int repeat_device_id_; |
base::TimeDelta repeat_delay_; |
base::TimeDelta repeat_interval_; |