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. |