OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_DISPLAY_CHROMEOS_X11_TOUCHSCREEN_DELEGATE_X11_H_ | 5 #ifndef UI_DISPLAY_CHROMEOS_X11_TOUCHSCREEN_DELEGATE_X11_H_ |
6 #define UI_DISPLAY_CHROMEOS_X11_TOUCHSCREEN_DELEGATE_X11_H_ | 6 #define UI_DISPLAY_CHROMEOS_X11_TOUCHSCREEN_DELEGATE_X11_H_ |
7 | 7 |
8 #include "ui/display/chromeos/display_configurator.h" | 8 #include "ui/display/chromeos/display_configurator.h" |
9 | 9 |
10 struct _XDisplay; | 10 struct _XDisplay; |
11 typedef struct _XDisplay Display; | 11 typedef struct _XDisplay Display; |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 | 14 |
15 class TouchscreenDelegateX11 : public DisplayConfigurator::TouchscreenDelegate { | 15 class TouchscreenDelegateX11 : public DisplayConfigurator::TouchscreenDelegate { |
16 public: | 16 public: |
17 TouchscreenDelegateX11(); | 17 TouchscreenDelegateX11(); |
18 virtual ~TouchscreenDelegateX11(); | 18 virtual ~TouchscreenDelegateX11(); |
19 | 19 |
20 // DisplayConfigurator::TouchscreenDelegate implementation: | 20 // DisplayConfigurator::TouchscreenDelegate implementation: |
21 virtual void AssociateTouchscreens( | 21 virtual void AssociateTouchscreens( |
22 DisplayConfigurator::DisplayStateList* outputs) OVERRIDE; | 22 DisplayConfigurator::DisplayStateList* outputs) OVERRIDE; |
23 virtual void ConfigureCTM( | |
24 int touch_device_id, | |
25 const DisplayConfigurator::CoordinateTransformation& ctm) OVERRIDE; | |
26 | 23 |
27 private: | 24 private: |
28 Display* display_; | 25 Display* display_; |
29 | 26 |
30 DISALLOW_COPY_AND_ASSIGN(TouchscreenDelegateX11); | 27 DISALLOW_COPY_AND_ASSIGN(TouchscreenDelegateX11); |
31 }; | 28 }; |
32 | 29 |
33 } // namespace ui | 30 } // namespace ui |
34 | 31 |
35 #endif // UI_DISPLAY_CHROMEOS_X11_TOUCHSCREEN_DELEGATE_X11_H_ | 32 #endif // UI_DISPLAY_CHROMEOS_X11_TOUCHSCREEN_DELEGATE_X11_H_ |
OLD | NEW |