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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h

Issue 990483002: ozone: evdev: Fix possibility of stuck keys with libevdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
diff --git a/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h b/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
index 0e17325f9b9039f12e9f0136c95927a88a79d9f6..d0f0263265d9502f182ba47451334c458bb18a0e 100644
--- a/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
+++ b/ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h
@@ -35,6 +35,9 @@ class EventReaderLibevdevCros : public EventConverterEvdev {
EventStateRec* state,
const timeval& time) = 0;
+ // Notifier for stop. This is called with the final event state.
+ virtual void OnLibEvdevCrosStopped(Evdev* evdev, EventStateRec* state) = 0;
+
// Sets which keyboard keys should be processed.
virtual void SetAllowedKeys(scoped_ptr<std::set<DomCode>> allowed_keys) = 0;
@@ -58,6 +61,7 @@ class EventReaderLibevdevCros : public EventConverterEvdev {
bool HasCapsLockLed() const override;
void SetAllowedKeys(scoped_ptr<std::set<DomCode>> allowed_keys) override;
void AllowAllKeys() override;
+ void OnStopped() override;
private:
static void OnSynReport(void* data,
« no previous file with comments | « no previous file | ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698