chromeos: moves ash/mus files into ash
The only ick in this patch is allowing circular deps on wayland and
exo. This is necessary because WindowManagerService includes wayland,
wayland includes ash...
BUG=784945
TEST=no functional changes
[email protected]
Change-Id: If62836861c7db7e0af62cea4a3b8c18fb2aa4675
Reviewed-on: https://chromium-review.googlesource.com/775579
Commit-Queue: Scott Violet <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Tom Sepez <[email protected]>
Reviewed-by: James Cook <[email protected]>
Reviewed-by: David Reveman <[email protected]>
Cr-Commit-Position: refs/heads/master@{#517569}
diff --git a/ash/touch/touch_transform_setter_mus.h b/ash/touch/touch_transform_setter_mus.h
new file mode 100644
index 0000000..a8a50fc
--- /dev/null
+++ b/ash/touch/touch_transform_setter_mus.h
@@ -0,0 +1,37 @@
+// 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 ASH_TOUCH_TOUCH_TRANSFORM_SETTER_MUS_H_
+#define ASH_TOUCH_TOUCH_TRANSFORM_SETTER_MUS_H_
+
+#include "base/macros.h"
+#include "services/ui/public/interfaces/input_devices/touch_device_server.mojom.h"
+#include "ui/display/manager/chromeos/touch_transform_setter.h"
+
+namespace service_manager {
+class Connector;
+}
+
+namespace ash {
+
+// display::TouchTransformSetter implementation for mus. Updates are applied
+// by way of ui::mojom::TouchDeviceServer.
+class TouchTransformSetterMus : public display::TouchTransformSetter {
+ public:
+ explicit TouchTransformSetterMus(service_manager::Connector* connector);
+ ~TouchTransformSetterMus() override;
+
+ // TouchTransformSetter:
+ void ConfigureTouchDevices(
+ const std::vector<ui::TouchDeviceTransform>& transforms) override;
+
+ private:
+ ui::mojom::TouchDeviceServerPtr touch_device_server_;
+
+ DISALLOW_COPY_AND_ASSIGN(TouchTransformSetterMus);
+};
+
+} // namespace ash
+
+#endif // ASH_TOUCH_TOUCH_TRANSFORM_SETTER_MUS_H_