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

Unified Diff: ash/touch/touch_transformer_controller.h

Issue 2557163002: Implements computation of touch calibration transform using user provided data (Closed)
Patch Set: Added link to crbug in code Created 4 years 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
Index: ash/touch/touch_transformer_controller.h
diff --git a/ash/touch/touch_transformer_controller.h b/ash/touch/touch_transformer_controller.h
index 640fcbb8c8f499de202b8db3080bafbbe691e33c..cfebb79e4a78acf8d4a79b539e8e551722c15135 100644
--- a/ash/touch/touch_transformer_controller.h
+++ b/ash/touch/touch_transformer_controller.h
@@ -35,6 +35,10 @@ class ASH_EXPORT TouchTransformerController
void OnDisplaysInitialized() override;
void OnDisplayConfigurationChanged() override;
+ // During touch calibration we remove any kind of transform that is being
+ // applied to the touch input's location.
kylechar 2016/12/19 20:00:21 This also updates the transforms right?
malaykeshav 2016/12/20 09:56:04 No. This only sets the TouchTransformerController
kylechar 2016/12/20 17:41:28 What does the call to UpdateTouchTransformer() do
malaykeshav 2016/12/20 19:16:55 Correct. When the calibration is under process (Se
+ void SetForCalibration(bool is_calibrating);
+
private:
FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
kylechar 2016/12/19 20:00:21 Would it just be simpler to make TouchTransformerC
malaykeshav 2016/12/20 09:56:05 Done
kylechar 2016/12/20 17:41:28 This wasn't done?
malaykeshav 2016/12/20 19:16:55 I was unable to friend class TouchTransformerContr
malaykeshav 2016/12/21 05:49:42 Done
MirrorModeLetterboxing);
@@ -43,6 +47,19 @@ class ASH_EXPORT TouchTransformerController
FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, SoftwareMirrorMode);
FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, ExtendedMode);
FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, TouchRadiusScale);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest, OzoneTrasnlation);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ AccurateUserTouchCalibration);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ ErrorProneUserTouchCalibration);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ ResolutionChangeUserTouchCalibration);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ DifferentBoundsUserTouchCalibration);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ LetterboxingUserTouchCalibration);
+ FRIEND_TEST_ALL_PREFIXES(TouchTransformerControllerTest,
+ PillarBoxingUserTouchCalibration);
// Returns a transform that will be used to change an event's location from
// the touchscreen's coordinate system into |display|'s coordinate system.
@@ -82,6 +99,8 @@ class ASH_EXPORT TouchTransformerController
const display::ManagedDisplayInfo& touch_display,
const display::ManagedDisplayInfo& target_display) const;
+ bool is_calibrating_ = false;
+
DISALLOW_COPY_AND_ASSIGN(TouchTransformerController);
};

Powered by Google App Engine
This is Rietveld 408576698