| Index: ui/events/x/events_x.cc
|
| ===================================================================
|
| --- ui/events/x/events_x.cc (revision 286562)
|
| +++ ui/events/x/events_x.cc (working copy)
|
| @@ -599,6 +599,18 @@
|
| delete event;
|
| }
|
|
|
| +void IncrementTouchIdRefCount(const base::NativeEvent& xev) {
|
| + ui::DeviceDataManagerX11* manager = ui::DeviceDataManagerX11::GetInstance();
|
| + double tracking_id;
|
| + if (!manager->GetEventData(
|
| + *xev, ui::DeviceDataManagerX11::DT_TOUCH_TRACKING_ID, &tracking_id)) {
|
| + return;
|
| + }
|
| +
|
| + ui::TouchFactory* factory = ui::TouchFactory::GetInstance();
|
| + factory->AcquireSlotForTrackingID(tracking_id);
|
| +}
|
| +
|
| void ClearTouchIdIfReleased(const base::NativeEvent& xev) {
|
| ui::EventType type = ui::EventTypeFromNative(xev);
|
| if (type == ui::ET_TOUCH_CANCELLED ||
|
|
|