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 #include "ash/touch/ash_touch_transform_controller.h" |
| 6 |
| 7 #include "ash/shell.h" |
| 8 #include "ui/display/manager/display_manager.h" |
| 9 |
| 10 namespace ash { |
| 11 |
| 12 AshTouchTransformController::AshTouchTransformController( |
| 13 display::DisplayConfigurator* display_configurator, |
| 14 display::DisplayManager* display_manager) |
| 15 : TouchTransformController(display_configurator, display_manager) { |
| 16 Shell::GetInstance()->window_tree_host_manager()->AddObserver(this); |
| 17 } |
| 18 |
| 19 AshTouchTransformController::~AshTouchTransformController() { |
| 20 Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this); |
| 21 } |
| 22 |
| 23 void AshTouchTransformController::OnDisplaysInitialized() { |
| 24 UpdateTouchTransforms(); |
| 25 } |
| 26 |
| 27 void AshTouchTransformController::OnDisplayConfigurationChanged() { |
| 28 UpdateTouchTransforms(); |
| 29 } |
| 30 |
| 31 } // namespace ash |
OLD | NEW |