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

Unified Diff: ash/touch/ash_touch_transform_controller.h

Issue 2617043003: Move TouchTransformerController to ui/display/. (Closed)
Patch Set: Make DEPS for one file. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.cc ('k') | ash/touch/ash_touch_transform_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ash/shell.cc ('k') | ash/touch/ash_touch_transform_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698