Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: ui/events/ozone/evdev/keyboard_evdev.h

Issue 1073573002: Ozone support for device special cases in keyboard event rewriting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: white space Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698