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

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: Applied comments, added functionality to only invalidate current scroll device Created 4 years, 6 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
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..94b9530d6cb8b973bd520dd742922c37de66e741 100644
--- a/ui/events/devices/x11/device_data_manager_x11.h
+++ b/ui/events/devices/x11/device_data_manager_x11.h
@@ -200,8 +200,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 no ID is specified, all devices are
+ // invalidated.
+ void InvalidateScrollClasses(int device_id = -1);
sadrul 2016/06/27 14:49:21 Remove the default param-value. Document that usin
Will Shackleton 2016/07/12 16:05:04 Done.
// 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') | ui/events/platform/x11/x11_event_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698