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

Unified Diff: ui/events/devices/x11/device_data_manager_x11.h

Issue 2077163003: Reduced number of UpdateDeviceList calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed ALL_DEVICES to kAllDevices Created 4 years, 5 months 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 | « no previous file | ui/events/devices/x11/device_data_manager_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d325674033fc40fa681c71fdaf9ab3605b4dd001 100644
--- a/ui/events/devices/x11/device_data_manager_x11.h
+++ b/ui/events/devices/x11/device_data_manager_x11.h
@@ -109,6 +109,10 @@ class EVENTS_DEVICES_X11_EXPORT DeviceDataManagerX11
DT_LAST_ENTRY // This must come last.
};
+ // A Device ID number that can be passed to InvalidateScrollClasses that
+ // invalidates all devices.
+ static const int kAllDevices = -1;
+
// Data struct to store extracted data from an input event.
typedef std::map<int, double> EventData;
@@ -200,8 +204,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 kAllDevices 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.
« no previous file with comments | « no previous file | ui/events/devices/x11/device_data_manager_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698