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

Unified Diff: ui/events/x/device_list_cache_x.h

Issue 508303002: Move touchscreen device caching to DeviceDataManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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/x/device_list_cache_x.h
diff --git a/ui/events/x/device_list_cache_x.h b/ui/events/x/device_list_cache_x.h
index 5b015d4cea6542e6f063a102c1bb585b748dfcb9..5456a43177ee2f46c24cccb7ffbc367a424e3808 100644
--- a/ui/events/x/device_list_cache_x.h
+++ b/ui/events/x/device_list_cache_x.h
@@ -24,6 +24,7 @@ struct DeviceList {
T& operator[] (int x) {
return devices[x];
}
+ const T& operator[](int x) const { return devices[x]; }
T* devices;
int count;
};

Powered by Google App Engine
This is Rietveld 408576698