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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev_impl.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_impl.h
diff --git a/ui/events/ozone/evdev/event_converter_evdev_impl.h b/ui/events/ozone/evdev/event_converter_evdev_impl.h
index b04a07df291f00fa112826023b9e692b7c415167..275730182c54155316658346b385059a387ce040 100644
--- a/ui/events/ozone/evdev/event_converter_evdev_impl.h
+++ b/ui/events/ozone/evdev/event_converter_evdev_impl.h
@@ -41,6 +41,7 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
void OnFileCanReadWithoutBlocking(int fd) override;
bool HasKeyboard() const override;
bool HasTouchpad() const override;
+ bool HasCapsLockLed() const override;
void SetAllowedKeys(scoped_ptr<std::set<DomCode>> allowed_keys) override;
void AllowAllKeys() override;
@@ -61,6 +62,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl
bool has_keyboard_;
bool has_touchpad_;
+ // Leds for this device.
alexst (slow to review) 2015/03/02 22:20:23 You use both Led and LED, it should probably be LE
spang 2015/03/02 22:38:21 For camel case our code [relatively] consistently
+ bool has_caps_lock_led_;
+
// Save x-axis events of relative devices to be flushed at EV_SYN time.
int x_offset_;

Powered by Google App Engine
This is Rietveld 408576698