| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ | 5 #ifndef ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ |
| 6 #define ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ | 6 #define ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/display/window_tree_host_manager.h" | 9 #include "ash/display/window_tree_host_manager.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/display/manager/chromeos/touch_transform_controller.h" | 11 #include "ui/display/manager/chromeos/touch_transform_controller.h" |
| 12 | 12 |
| 13 namespace display { | 13 namespace display { |
| 14 class DisplayConfigurator; | 14 class DisplayConfigurator; |
| 15 class DisplayManager; | 15 class DisplayManager; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 | 19 |
| 20 // AshTouchTransformController listens for display configuration changes and | 20 // AshTouchTransformController listens for display configuration changes and |
| 21 // updates the touch transforms when one occurs. | 21 // updates the touch transforms when one occurs. |
| 22 class ASH_EXPORT AshTouchTransformController | 22 class ASH_EXPORT AshTouchTransformController |
| 23 : public display::TouchTransformController, | 23 : public display::TouchTransformController, |
| 24 public WindowTreeHostManager::Observer { | 24 public WindowTreeHostManager::Observer { |
| 25 public: | 25 public: |
| 26 AshTouchTransformController( | 26 AshTouchTransformController( |
| 27 display::DisplayConfigurator* display_configurator, | 27 display::DisplayConfigurator* display_configurator, |
| 28 display::DisplayManager* display_manager); | 28 display::DisplayManager* display_manager, |
| 29 std::unique_ptr<display::TouchTransformSetter> setter); |
| 29 ~AshTouchTransformController() override; | 30 ~AshTouchTransformController() override; |
| 30 | 31 |
| 31 // WindowTreeHostManager::Observer: | 32 // WindowTreeHostManager::Observer: |
| 32 void OnDisplaysInitialized() override; | 33 void OnDisplaysInitialized() override; |
| 33 void OnDisplayConfigurationChanged() override; | 34 void OnDisplayConfigurationChanged() override; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(AshTouchTransformController); | 37 DISALLOW_COPY_AND_ASSIGN(AshTouchTransformController); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 } // namespace ash | 40 } // namespace ash |
| 40 | 41 |
| 41 #endif // ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ | 42 #endif // ASH_TOUCH_ASH_TOUCH_TRANSFORM_CONTROLLER_H_ |
| OLD | NEW |