Index: ui/display/manager/chromeos/touch_transform_setter.h |
diff --git a/ui/display/manager/chromeos/touch_transform_setter.h b/ui/display/manager/chromeos/touch_transform_setter.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4e87b079c4c99ef9c24467483d08c145b262ac60 |
--- /dev/null |
+++ b/ui/display/manager/chromeos/touch_transform_setter.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_ |
+#define UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_ |
+ |
+#include <map> |
+#include <vector> |
+ |
+#include "base/macros.h" |
+#include "ui/display/manager/display_manager_export.h" |
+ |
+namespace display { |
+ |
+struct TouchDeviceTransform; |
+ |
+// TouchTransformSetter is used by TouchTransformController to apply the actual |
+// settings. |
+class DISPLAY_MANAGER_EXPORT TouchTransformSetter { |
+ public: |
+ virtual ~TouchTransformSetter() {} |
+ |
+ // |scales| maps from the touch device id to the touch radius scale and |
+ // |transforms| contains the transform for each device and display pair. |
+ virtual void ConfigureTouchDevices( |
+ const std::map<int32_t, double>& scales, |
+ const std::vector<TouchDeviceTransform>& transforms) = 0; |
+}; |
+ |
+} // namespace display |
+ |
+#endif // UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_ |