Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1138)

Side by Side Diff: ash/touch/ash_touch_transform_controller.cc

Issue 2617043003: Move TouchTransformerController to ui/display/. (Closed)
Patch Set: Add comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698