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

Unified Diff: ui/events/devices/x11/touch_factory_x11.cc

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup leftover stuff 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/devices/x11/touch_factory_x11.h ('k') | ui/events/event_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/x11/touch_factory_x11.cc
diff --git a/ui/events/devices/x11/touch_factory_x11.cc b/ui/events/devices/x11/touch_factory_x11.cc
index 0a35527178403bd1fb484f729948562d46a78a2a..79f600d47b1e93434246ff29abe65a468f379525 100644
--- a/ui/events/devices/x11/touch_factory_x11.cc
+++ b/ui/events/devices/x11/touch_factory_x11.cc
@@ -156,10 +156,10 @@ void TouchFactory::UpdateDeviceList(Display* display) {
}
}
-bool TouchFactory::ShouldProcessXI2Event(XEvent* xev) {
+bool TouchFactory::ShouldProcessXI2Event(const XEvent* xev) {
DCHECK_EQ(GenericEvent, xev->type);
- XIEvent* event = static_cast<XIEvent*>(xev->xcookie.data);
- XIDeviceEvent* xiev = reinterpret_cast<XIDeviceEvent*>(event);
+ const XIEvent* event = static_cast<const XIEvent*>(xev->xcookie.data);
+ const XIDeviceEvent* xiev = reinterpret_cast<const XIDeviceEvent*>(event);
if (event->evtype == XI_TouchBegin ||
event->evtype == XI_TouchUpdate ||
« no previous file with comments | « ui/events/devices/x11/touch_factory_x11.h ('k') | ui/events/event_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698