Index: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
index 02b97c22362f1cfee0025c459edd91c01cea608d..fecbb87aeb07dc619afbace2200b2486e19ec5bb 100644 |
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc |
@@ -864,6 +864,14 @@ bool GesturePropertyProvider::GetDeviceIdsByType( |
return exists; |
} |
+bool GesturePropertyProvider::IsDeviceIdOfType(const DeviceId device_id, |
+ const EventDeviceType type) { |
+ DeviceMap::const_iterator it = device_map_.find(device_id); |
+ if (it == device_map_.end()) |
+ return false; |
+ return IsDeviceOfType(it->second, type); |
+} |
+ |
GesturesProp* GesturePropertyProvider::GetProperty(const DeviceId device_id, |
const std::string& name) { |
return FindProperty(device_id, name); |