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

Unified Diff: ui/events/devices/device_data_manager.h

Issue 1182303005: Fixed the Touchscreen.TouchEventsEnabled histogram to record the correct values on X11 and Ozone ba… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed asvitkine@'s comments from patch set 11. Created 5 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
Index: ui/events/devices/device_data_manager.h
diff --git a/ui/events/devices/device_data_manager.h b/ui/events/devices/device_data_manager.h
index 2975b9fe77eddd452a59d76ad388778f9b4e5bb4..f3782ebd02629af8341bc470a5341dc72ec5a5a6 100644
--- a/ui/events/devices/device_data_manager.h
+++ b/ui/events/devices/device_data_manager.h
@@ -20,6 +20,10 @@
namespace ui {
+namespace test {
+class DeviceDataManagerTestAPI;
+} // namespace test
+
class InputDeviceEventObserver;
// Keeps track of device mappings and event transformations.
@@ -78,10 +82,18 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
void OnDeviceListsComplete() override;
private:
+ friend class test::DeviceDataManagerTestAPI;
+
static DeviceDataManager* instance_;
bool IsTouchDeviceIdValid(int touch_device_id) const;
+ void NotifyObserversTouchscreenDeviceConfigurationChanged();
+ void NotifyObserversKeyboardDeviceConfigurationChanged();
+ void NotifyObserversMouseDeviceConfigurationChanged();
+ void NotifyObserversTouchpadDeviceConfigurationChanged();
+ void NotifyObserversDeviceListsComplete();
+
double touch_radius_scale_map_[kMaxDeviceNum];
// Index table to find the target display id for a touch device.

Powered by Google App Engine
This is Rietveld 408576698