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

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: s/PLOG/LOG/ for short write. errno is not set in this case 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
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3ca5f0bcd7dbdde687e416c549380f0f9f0255ed 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698