Chromium Code Reviews| 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 4896ad86fd23a85aaff02d76af937558e7bd324d..51c59d1d4cae9ad5648b1fe48dd46e7e8d7c8c74 100644 |
| --- a/ui/events/devices/device_data_manager.h |
| +++ b/ui/events/devices/device_data_manager.h |
| @@ -40,6 +40,12 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager |
| void ApplyTouchTransformer(unsigned int touch_device_id, float* x, float* y); |
| int64_t GetDisplayForTouchDevice(unsigned int touch_device_id) const; |
| + // Sets/Gets the display that touches from |touch_device_id| should be |
| + // redirected to. |
| + void SetTargetDisplayForTouchDevice(unsigned int touch_device_id, |
| + int64_t target_display_id); |
| + int64_t GetTargetDisplayForTouchDevice(unsigned int touch_device_id); |
|
sadrul
2015/03/02 16:56:18
How is this different from GetDisplayForTouchDevic
pkotwicz
2015/03/02 17:55:53
In mirror mode (either software or hardware):
- Ge
sadrul
2015/03/03 04:43:09
We should have just one of these functions. Having
oshima
2015/03/04 00:54:36
How about using GetDisplayForTouchDevice() for all
sadrul
2015/03/05 11:07:14
I think that sounds good, yeah.
|
| + |
| void UpdateTouchRadiusScale(unsigned int touch_device_id, double scale); |
| void ApplyTouchRadiusScale(unsigned int touch_device_id, double* radius); |
| @@ -78,6 +84,8 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager |
| // 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]; |