Index: ash/touch/ash_touch_transform_controller.h |
diff --git a/ash/touch/ash_touch_transform_controller.h b/ash/touch/ash_touch_transform_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e73d1afa88ee049435dfae719b14cb1bbe1db297 |
--- /dev/null |
+++ b/ash/touch/ash_touch_transform_controller.h |
@@ -0,0 +1,41 @@ |
+// 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_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ |
+#define ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ |
+ |
+#include "ash/ash_export.h" |
+#include "ash/display/window_tree_host_manager.h" |
+#include "base/macros.h" |
+#include "ui/display/manager/chromeos/touch_transform_controller.h" |
+ |
+namespace display { |
+class DisplayConfigurator; |
+class DisplayManager; |
+} |
+ |
+namespace ash { |
+ |
+// AshTouchTransformController listens for display configuration changes and |
+// updates the touch transforms when one occurs. |
+class ASH_EXPORT AshTouchTransformController |
+ : public display::TouchTransformController, |
+ public WindowTreeHostManager::Observer { |
+ public: |
+ AshTouchTransformController( |
+ display::DisplayConfigurator* display_configurator, |
+ display::DisplayManager* display_manager); |
+ ~AshTouchTransformController() override; |
+ |
+ // WindowTreeHostManager::Observer: |
+ void OnDisplaysInitialized() override; |
+ void OnDisplayConfigurationChanged() override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AshTouchTransformController); |
+}; |
+ |
+} // namespace ash |
+ |
+#endif // ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ |