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 ASH_MUS_TOUCH_TRANSFORM_SETTER_MUS_H_ |
| 6 #define ASH_MUS_TOUCH_TRANSFORM_SETTER_MUS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "services/ui/public/interfaces/input_devices/touch_device_server.mojom.
h" |
| 10 #include "ui/display/manager/chromeos/touch_transform_setter.h" |
| 11 |
| 12 namespace service_manager { |
| 13 class Connector; |
| 14 } |
| 15 |
| 16 namespace ash { |
| 17 |
| 18 // display::TouchTransformSetter implementation for mus. Updates are applied |
| 19 // by way of ui::mojom::TouchDeviceServer. |
| 20 class TouchTransformSetterMus : public display::TouchTransformSetter { |
| 21 public: |
| 22 explicit TouchTransformSetterMus(service_manager::Connector* connector); |
| 23 ~TouchTransformSetterMus() override; |
| 24 |
| 25 // TouchTransformSetter: |
| 26 void ConfigureTouchDevices( |
| 27 const std::map<int32_t, double>& scales, |
| 28 const std::vector<display::TouchDeviceTransform>& transforms) override; |
| 29 |
| 30 private: |
| 31 ui::mojom::TouchDeviceServerPtr touch_device_server_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(TouchTransformSetterMus); |
| 34 }; |
| 35 |
| 36 } // namespace ash |
| 37 |
| 38 #endif // ASH_MUS_TOUCH_TRANSFORM_SETTER_MUS_H_ |
OLD | NEW |