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

Side by Side Diff: services/ui/ws/touch_controller.h

Issue 2627623003: Add full touch support to mus. (Closed)
Patch Set: Fixes. 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
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/touch_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/touch_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698