OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_ |
| 6 #define UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_ |
| 7 |
| 8 #include <map> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/macros.h" |
| 12 #include "ui/display/manager/display_manager_export.h" |
| 13 |
| 14 namespace display { |
| 15 |
| 16 struct TouchDeviceTransform; |
| 17 |
| 18 // TouchTransformSetter is used by TouchTransformController to apply the actual |
| 19 // settings. |
| 20 class DISPLAY_MANAGER_EXPORT TouchTransformSetter { |
| 21 public: |
| 22 virtual ~TouchTransformSetter() {} |
| 23 |
| 24 // |scales| maps from the touch device id to the touch radius scale and |
| 25 // |transforms| contains the transform for each device and display pair. |
| 26 virtual void ConfigureTouchDevices( |
| 27 const std::map<int32_t, double>& scales, |
| 28 const std::vector<TouchDeviceTransform>& transforms) = 0; |
| 29 }; |
| 30 |
| 31 } // namespace display |
| 32 |
| 33 #endif // UI_DISPLAY_MANAGER_CHROMEOS_TOUCH_TRANSFORM_SETTER_H_ |
OLD | NEW |