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

Unified Diff: ash/touch/touch_transformer_controller.h

Issue 1130983005: ash: Refactor of TouchTransformerController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback Created 5 years, 7 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 | « no previous file | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_transformer_controller.h
diff --git a/ash/touch/touch_transformer_controller.h b/ash/touch/touch_transformer_controller.h
index 1ca7acf918b08bb9a91ed426e71cf68d56e1d4d1..bf06f8cc42871c79a81a44a2c796348c80e3b570 100644
--- a/ash/touch/touch_transformer_controller.h
+++ b/ash/touch/touch_transformer_controller.h
@@ -61,6 +61,21 @@ class ASH_EXPORT TouchTransformerController
const DisplayInfo& touch_display,
const ui::TouchscreenDevice& touch_device) const;
+ // For the provided |display| update the touch radius mapping.
+ void UpdateTouchRadius(const DisplayInfo& display) const;
+
+ // For a given |target_display| and |target_display_id| update the touch
+ // transformation based on the touchscreen associated with |touch_display|.
+ // |target_display_id| is the display id whose root window will receive the
+ // touch events.
+ // |touch_display| is the physical display that has the touchscreen
+ // from which the events arrive.
+ // |target_display| provides the dimensions to which the touch event will be
+ // transformed.
+ void UpdateTouchTransform(int64_t target_display_id,
+ const DisplayInfo& touch_display,
+ const DisplayInfo& target_display) const;
+
DISALLOW_COPY_AND_ASSIGN(TouchTransformerController);
};
« no previous file with comments | « no previous file | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698