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

Unified Diff: ui/events/device_data_manager.h

Issue 412553005: Scale touch event radius (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 6 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 | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ui/events/device_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/device_data_manager.h
diff --git a/ui/events/device_data_manager.h b/ui/events/device_data_manager.h
index 7b2feaaa57a6c971eed5154528df7a094e12f310..838ce67210f1dc669e9cbc079d46967e4be34293 100644
--- a/ui/events/device_data_manager.h
+++ b/ui/events/device_data_manager.h
@@ -30,6 +30,9 @@ class EVENTS_BASE_EXPORT DeviceDataManager {
void ApplyTouchTransformer(int touch_device_id, float* x, float* y);
int64_t GetDisplayForTouchDevice(int touch_device_id) const;
+ void UpdateTouchRadiusScale(int touch_device_id, double scale);
+ void ApplyTouchRadiusScale(int touch_device_id, double* radius);
+
protected:
DeviceDataManager();
@@ -42,6 +45,8 @@ class EVENTS_BASE_EXPORT DeviceDataManager {
bool IsTouchDeviceIdValid(int touch_device_id) const;
+ double touch_radius_scale_map_[kMaxDeviceNum];
+
// Table to keep track of which display id is mapped to which touch device.
int64_t touch_device_to_display_map_[kMaxDeviceNum];
// Index table to find the TouchTransformer for a touch device.
« no previous file with comments | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ui/events/device_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698