Index: ui/events/devices/x11/device_data_manager_x11.h |
diff --git a/ui/events/devices/x11/device_data_manager_x11.h b/ui/events/devices/x11/device_data_manager_x11.h |
index c07aed4549845023b4a09957d8a921e5f9966e8f..6f0298cfaea81d4dd224e7259fef4cb1c1680da5 100644 |
--- a/ui/events/devices/x11/device_data_manager_x11.h |
+++ b/ui/events/devices/x11/device_data_manager_x11.h |
@@ -109,6 +109,12 @@ class EVENTS_DEVICES_X11_EXPORT DeviceDataManagerX11 |
DT_LAST_ENTRY // This must come last. |
}; |
+ // Device ID numbers that can be passed to InvalidateScrollClasses. Other |
+ // valid values are 0 to kMaxDeviceNum. |
+ enum DeviceID { |
+ ALL_DEVICES = -1, |
+ }; |
sadrul
2016/07/19 15:03:24
Use "static const int kAllDevices = -1;" instead?
|
+ |
// Data struct to store extracted data from an input event. |
typedef std::map<int, double> EventData; |
@@ -200,8 +206,9 @@ class EVENTS_DEVICES_X11_EXPORT DeviceDataManagerX11 |
double* y_offset); |
// Invalidate stored scroll class counters, since they can change when |
- // pointing at other windows. |
- void InvalidateScrollClasses(); |
+ // pointing at other windows. If ALL_DEVICES is specified, all devices are |
+ // invalidated. |
+ void InvalidateScrollClasses(int device_id); |
// Extract data from a fling event. User must first verify the event type |
// with IsFlingEvent. Pointers shouldn't be NULL. |