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

Unified Diff: ui/events/devices/x11/device_data_manager_x11.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: Nits 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/devices/x11/device_data_manager_x11.cc
diff --git a/ui/events/devices/x11/device_data_manager_x11.cc b/ui/events/devices/x11/device_data_manager_x11.cc
index dc839dfbb1165541075e2c02735eaa1877886b2e..e02162049645fa807b1c05ebaa16b49cdcd6df77 100644
--- a/ui/events/devices/x11/device_data_manager_x11.cc
+++ b/ui/events/devices/x11/device_data_manager_x11.cc
@@ -742,6 +742,10 @@ void DeviceDataManagerX11::EnableDevice(int deviceid) {
}
}
+bool DeviceDataManagerX11::IsDeviceEnabled(int device_id) const {
+ return blocked_devices_.test(device_id);
+}
+
bool DeviceDataManagerX11::IsEventBlocked(
const base::NativeEvent& native_event) {
// Only check XI2 events which have a source device id.

Powered by Google App Engine
This is Rietveld 408576698