| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 #ifndef SERVICES_UI_WS_TOUCH_CONTROLLER_H_ | |
| 6 #define SERVICES_UI_WS_TOUCH_CONTROLLER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "ui/events/devices/input_device_event_observer.h" | |
| 10 | |
| 11 namespace ui { | |
| 12 namespace ws { | |
| 13 | |
| 14 class DisplayManager; | |
| 15 | |
| 16 // Tracks changes to displays and touchscreen devices. Updates the mapping | |
| 17 // between display devices and touchscreen devices when changes occur. | |
| 18 class TouchController : public ui::InputDeviceEventObserver { | |
| 19 public: | |
| 20 explicit TouchController(DisplayManager* display_manager); | |
| 21 ~TouchController() override; | |
| 22 | |
| 23 void UpdateTouchTransforms() const; | |
| 24 | |
| 25 // ui::InputDeviceEventObserver: | |
| 26 void OnTouchscreenDeviceConfigurationChanged() override; | |
| 27 | |
| 28 private: | |
| 29 DisplayManager* display_manager_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(TouchController); | |
| 32 }; | |
| 33 | |
| 34 } // namespace ws | |
| 35 } // namespace ui | |
| 36 | |
| 37 #endif // SERVICES_UI_WS_TOUCH_CONTROLLER_H_ | |
| OLD | NEW |