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

Unified Diff: ui/events/ozone/evdev/input_device_factory_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_device_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.cc b/ui/events/ozone/evdev/input_device_factory_evdev.cc
index 73e16c60f5722af630525b0bb8d1a707f1a93820..1bf91146e9e4d35cce93781d4456ff01e9022707 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.cc
@@ -367,6 +367,10 @@ bool InputDeviceFactoryEvdev::IsDeviceEnabled(
converter->HasTouchpad())
return false;
+ if (!input_device_settings_.enable_touch_screens &&
+ converter->HasTouchscreen())
+ return false;
+
return input_device_settings_.enable_devices;
}

Powered by Google App Engine
This is Rietveld 408576698