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