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

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

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Patch for landing, added the mojo bits Created 3 years, 7 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/event_converter_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev_impl.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.cc
diff --git a/ui/events/ozone/evdev/event_converter_evdev.cc b/ui/events/ozone/evdev/event_converter_evdev.cc
index d6dbce1a1fcbc9db381a59d63204e50ed31495df..23487ac8078597eb5d97eda1ae3c6187f184a0c5 100644
--- a/ui/events/ozone/evdev/event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/event_converter_evdev.cc
@@ -51,7 +51,7 @@ void EventConverterEvdev::Stop() {
}
void EventConverterEvdev::SetEnabled(bool enabled) {
- if (enabled == enabled_)
+ if (enabled == input_device_.enabled)
return;
if (enabled) {
TRACE_EVENT1("evdev", "EventConverterEvdev::OnEnabled", "path",
@@ -62,7 +62,11 @@ void EventConverterEvdev::SetEnabled(bool enabled) {
path_.value());
OnDisabled();
}
- enabled_ = enabled;
+ input_device_.enabled = enabled;
+}
+
+bool EventConverterEvdev::IsEnabled() const {
+ return input_device_.enabled;
}
void EventConverterEvdev::OnStopped() {
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.h ('k') | ui/events/ozone/evdev/event_converter_evdev_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698