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

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

Issue 1097393011: Revert of Ozone support for device special cases in keyboard event rewriting. (patchset #6 id:12000… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ui/events/ozone/evdev/input_device_factory_evdev.cc ('k') | ui/events/ozone/evdev/keyboard_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2dd0792f1cfbacaadf3269cf0aa2962768ce798f..8b49ebb765bde7b0f6fb952944185c97219f71b6 100644
--- a/ui/events/ozone/evdev/keyboard_evdev.h
+++ b/ui/events/ozone/evdev/keyboard_evdev.h
@@ -34,10 +34,7 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev {
~KeyboardEvdev();
// Handlers for raw key presses & releases.
- void OnKeyChange(unsigned int code,
- bool down,
- base::TimeDelta timestamp,
- int device_id);
+ void OnKeyChange(unsigned int code, bool down, base::TimeDelta timestamp);
// Handle Caps Lock modifier.
void SetCapsLockEnabled(bool enabled);
@@ -53,16 +50,15 @@ class EVENTS_OZONE_EVDEV_EXPORT KeyboardEvdev {
private:
void UpdateModifier(int modifier_flag, bool down);
void UpdateCapsLockLed();
- void UpdateKeyRepeat(unsigned int key, bool down, int device_id);
- void StartKeyRepeat(unsigned int key, int device_id);
+ void UpdateKeyRepeat(unsigned int key, bool down);
+ void StartKeyRepeat(unsigned int key);
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,
- int device_id);
+ base::TimeDelta timestamp);
// 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.
@@ -86,7 +82,6 @@ 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_;
« no previous file with comments | « ui/events/ozone/evdev/input_device_factory_evdev.cc ('k') | ui/events/ozone/evdev/keyboard_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698