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

Unified Diff: extensions/browser/api/system_display/display_info_provider.h

Issue 2538623002: Adds touch calibration methods to system_display.idl API (Closed)
Patch Set: Adds touch calibration methods to system.idl API 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: extensions/browser/api/system_display/display_info_provider.h
diff --git a/extensions/browser/api/system_display/display_info_provider.h b/extensions/browser/api/system_display/display_info_provider.h
index 54e44abf7f56e5844d674b887ec863a65bc6a6c5..5aea369f189194e7b8e1123a55ed72ee275eb684 100644
--- a/extensions/browser/api/system_display/display_info_provider.h
+++ b/extensions/browser/api/system_display/display_info_provider.h
@@ -20,10 +20,12 @@ namespace extensions {
namespace api {
namespace system_display {
+struct Bounds;
struct DisplayLayout;
struct DisplayProperties;
struct DisplayUnitInfo;
struct Insets;
+struct TouchCalibrationPairQuad;
}
}
@@ -71,6 +73,16 @@ class DisplayInfoProvider {
virtual bool OverscanCalibrationReset(const std::string& id);
virtual bool OverscanCalibrationComplete(const std::string& id);
+ // Implements touch calibration methods. See system_display.idl. This returns
+ // false if |id| is invalid.
+ virtual bool TouchCalibrationStart(const std::string& id);
+ virtual bool TouchCalibrationSet(
+ const std::string& id,
+ const api::system_display::TouchCalibrationPairQuad& pairs,
+ const api::system_display::Bounds& bounds);
+ virtual bool TouchCalibrationReset(const std::string& id);
+ virtual bool IsTouchCalibrationActive(const std::string& id);
+
protected:
DisplayInfoProvider();

Powered by Google App Engine
This is Rietveld 408576698