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

Unified Diff: ash/touch/touch_transformer_controller.h

Issue 412553005: Scale touch event radius (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 6 years, 5 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/display/event_transformation_handler.cc ('k') | 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 f06be2957e1ac43faee9bdc74c15241fb01e4ca4..8512186603d757b0bb8d096596e469130f0f9077 100644
--- a/ash/touch/touch_transformer_controller.h
+++ b/ash/touch/touch_transformer_controller.h
@@ -34,6 +34,8 @@ class ASH_EXPORT TouchTransformerController
TouchTransformerMirrorModePillarboxing);
FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
TouchTransformerExtendedMode);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ TouchRadiusScale);
bool ShouldComputeMirrorModeTouchTransformer(
const DisplayInfo& touch_display) const ;
@@ -44,6 +46,8 @@ class ASH_EXPORT TouchTransformerController
gfx::Transform GetExtendedModeTouchTransformer(
const DisplayInfo& touch_display, const gfx::Size& fb_size) const;
+ double GetTouchResolutionScale(const DisplayInfo& touch_display) const;
+
// For unittests only.
bool force_compute_mirror_mode_touch_transformer_;
« no previous file with comments | « ash/display/event_transformation_handler.cc ('k') | ash/touch/touch_transformer_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698