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

Unified Diff: ui/events/platform/x11/x11_hotplug_event_handler.cc

Issue 706763003: x11: Always require XI2.2 for X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 6 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
« no previous file with comments | « ui/events/platform/x11/x11_event_source.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_hotplug_event_handler.cc
diff --git a/ui/events/platform/x11/x11_hotplug_event_handler.cc b/ui/events/platform/x11/x11_hotplug_event_handler.cc
index b615897cb26978b78c33d3fc1e57811ae409e874..7637fb4708711e1711bd5fda181fd0721985f46d 100644
--- a/ui/events/platform/x11/x11_hotplug_event_handler.cc
+++ b/ui/events/platform/x11/x11_hotplug_event_handler.cc
@@ -100,12 +100,10 @@ struct DeviceInfo {
valuator_class_infos.push_back(ValuatorClassInfo(
*reinterpret_cast<XIValuatorClassInfo*>(device.classes[i])));
break;
-#if defined(USE_XI2_MT)
case XITouchClass:
touch_class_infos.push_back(TouchClassInfo(
*reinterpret_cast<XITouchClassInfo*>(device.classes[i])));
break;
-#endif
default:
break;
}
@@ -129,9 +127,7 @@ struct DeviceInfo {
std::vector<ValuatorClassInfo> valuator_class_infos;
-#if defined(USE_XI2_MT)
std::vector<TouchClassInfo> touch_class_infos;
-#endif
};
// X11 display cache used on worker threads. This is filled on the UI thread and
@@ -281,11 +277,9 @@ void HandleTouchscreenDevicesInWorker(
}
}
-#if defined(USE_XI2_MT)
for (const TouchClassInfo& info : device_info.touch_class_infos) {
is_direct_touch = info.mode == XIDirectTouch;
}
-#endif
// Touchscreens should have absolute X and Y axes, and be direct touch
// devices.
« no previous file with comments | « ui/events/platform/x11/x11_event_source.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698