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..c2a8143b3dfade5f749f4081f40111a3f37b6e8b 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 SetDestinationDisplayForTouchDevice(unsigned int touch_device_id, |
| + int64_t destination_display_id); |
| + int64_t GetDestinationDisplayForTouchDevice(unsigned int touch_device_id); |
|
oshima
2015/02/27 02:37:43
I'll leave this to sadrul, but I feel that the nam
pkotwicz
2015/02/27 02:47:06
I'm leaving this to Sadrul too
oshima
2015/02/27 20:45:31
GetTargetdisplayForTouchDevice could be a good can
|
| + |
| 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 destination display id for a touch device. |
| + int64_t touch_device_to_destination_display_map_[kMaxDeviceNum]; |
| // Index table to find the TouchTransformer for a touch device. |
| gfx::Transform touch_device_transformer_map_[kMaxDeviceNum]; |