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

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, 10 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.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 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];
« no previous file with comments | « ash/touch/touch_transformer_controller.cc ('k') | ui/events/devices/device_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698