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

Unified Diff: chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h

Issue 2656433004: - Plumbs through native touch calibration from MD settings to display manager via the system dis… (Closed)
Patch Set: Created 3 years, 11 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 | chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h
diff --git a/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h b/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h
index 4f51cd4288237fbf04b6aba4f837398107e2c0cf..ffa0ab55c652771425f3d6d8c3b95ac811e8d083 100644
--- a/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h
+++ b/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h
@@ -31,6 +31,7 @@ class TouchCalibratorController : public ui::EventHandler,
public:
using CalibrationPointPairQuad =
display::TouchCalibrationData::CalibrationPointPairQuad;
+ using TouchCalibrationCallback = base::Callback<void(bool)>;
static const base::TimeDelta kTouchIntervalThreshold;
@@ -45,7 +46,8 @@ class TouchCalibratorController : public ui::EventHandler,
void OnDisplayConfigurationChanged() override;
// Starts the calibration process for the given |target_display|.
- void StartCalibration(const display::Display& target_display);
+ void StartCalibration(const display::Display& target_display,
+ const TouchCalibrationCallback& callback);
// Stops any ongoing calibration process.
void StopCalibration();
@@ -78,6 +80,9 @@ class TouchCalibratorController : public ui::EventHandler,
// touch input point pairs that will be used for calibration.
CalibrationPointPairQuad touch_point_quad_;
+ // A callback to be called when touch calibration completes.
+ TouchCalibrationCallback callback_;
+
DISALLOW_COPY_AND_ASSIGN(TouchCalibratorController);
};
« no previous file with comments | « no previous file | chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698