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

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

Issue 922843002: Fix software mirror mode on Ozone part 2/2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/devices/device_data_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a0c05ba69a2a531697ebfcd0ccdd89f1f647f198..f58350f8279de705158e08ac31b8d4e9b51ab033 100644
--- a/ui/events/devices/device_data_manager.h
+++ b/ui/events/devices/device_data_manager.h
@@ -33,12 +33,14 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
static DeviceDataManager* GetInstance();
static bool HasInstance();
- void ClearTouchTransformerRecord();
- void UpdateTouchInfoForDisplay(int64_t display_id,
+ void ClearTouchDeviceAssociations();
+ void UpdateTouchInfoForDisplay(int64_t target_display_id,
unsigned int touch_device_id,
const gfx::Transform& touch_transformer);
void ApplyTouchTransformer(unsigned int touch_device_id, float* x, float* y);
- int64_t GetDisplayForTouchDevice(unsigned int touch_device_id) const;
+
+ // Gets the display that touches from |touch_device_id| should be sent to.
+ int64_t GetTargetDisplayForTouchDevice(unsigned int touch_device_id) const;
void UpdateTouchRadiusScale(unsigned int touch_device_id, double scale);
void ApplyTouchRadiusScale(unsigned int touch_device_id, double* radius);
@@ -76,8 +78,8 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
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 target display id for a touch device.
+ int64_t touch_device_to_target_display_map_[kMaxDeviceNum];
// Index table to find the TouchTransformer for a touch device.
gfx::Transform touch_device_transformer_map_[kMaxDeviceNum];
« no previous file with comments | « ash/touch/touch_transformer_controller_unittest.cc ('k') | ui/events/devices/device_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698