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

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

Issue 1412623006: Developer Feature: Add Debug Accelerators to Toggle Touchscreen/Touchpad On or Off (CrOS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul's comment Created 5 years, 1 month 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/input_controller_evdev.cc
diff --git a/ui/events/ozone/evdev/input_controller_evdev.cc b/ui/events/ozone/evdev/input_controller_evdev.cc
index a1c7f2ad5c986b17edd73763eddcb800cc85833f..42460962e6a1b1fc2c9775324e3fceeb8c2d88fc 100644
--- a/ui/events/ozone/evdev/input_controller_evdev.cc
+++ b/ui/events/ozone/evdev/input_controller_evdev.cc
@@ -92,6 +92,15 @@ void InputControllerEvdev::SetInternalTouchpadEnabled(bool enabled) {
ScheduleUpdateDeviceSettings();
}
+bool InputControllerEvdev::IsInternalTouchpadEnabled() const {
+ return input_device_settings_.enable_internal_touchpad;
+}
+
+void InputControllerEvdev::SetTouchscreensEnabled(bool enabled) {
+ input_device_settings_.enable_touch_screens = enabled;
+ ScheduleUpdateDeviceSettings();
+}
+
void InputControllerEvdev::SetTouchEventLoggingEnabled(bool enabled) {
input_device_settings_.touch_event_logging_enabled = enabled;
ScheduleUpdateDeviceSettings();

Powered by Google App Engine
This is Rietveld 408576698