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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc

Issue 796803002: ozone: mouse button swap shouldn't affect touchpad physical click (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698