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

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

Issue 971753006: ozone: evdev: Sync caps lock LED state to evdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: aand forgot to sync on hotplug Created 5 years, 10 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/event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/event_converter_evdev.h b/ui/events/ozone/evdev/event_converter_evdev.h
index 4e78d84cf615b9e6e11ce31e76fbd096a6ca9d48..80d3418a2205d86df5a83698471652232b6f88d6 100644
--- a/ui/events/ozone/evdev/event_converter_evdev.h
+++ b/ui/events/ozone/evdev/event_converter_evdev.h
@@ -55,6 +55,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev
// Returns true if the converter is used for a touchscreen device.
virtual bool HasTouchscreen() const;
+ // Returns true if the converter is used for a device with a caps lock led.
+ virtual bool HasCapsLockLed() const;
+
// Returns the size of the touchscreen device if the converter is used for a
// touchscreen device.
virtual gfx::Size GetTouchscreenSize() const;
@@ -69,6 +72,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev
// Allows all keys to be processed.
virtual void AllowAllKeys();
+ // Update caps lock LED state.
+ virtual void SetCapsLockLed(bool enabled);
+
// Helper to generate a base::TimeDelta from an input_event's time
static base::TimeDelta TimeDeltaFromInputEvent(const input_event& event);
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | ui/events/ozone/evdev/event_converter_evdev_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698