| 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 CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_ | 5 #ifndef CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_ |
| 6 #define CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_ | 6 #define CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_ |
| 7 | 7 |
| 8 #include "chromeos/display/output_configurator.h" | 8 #include "chromeos/display/output_configurator.h" |
| 9 | 9 |
| 10 struct _XDisplay; | 10 struct _XDisplay; |
| 11 typedef struct _XDisplay Display; | 11 typedef struct _XDisplay Display; |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 class TouchscreenDelegateX11 : public OutputConfigurator::TouchscreenDelegate { | 15 class TouchscreenDelegateX11 : public OutputConfigurator::TouchscreenDelegate { |
| 16 public: | 16 public: |
| 17 TouchscreenDelegateX11(); | 17 TouchscreenDelegateX11(); |
| 18 virtual ~TouchscreenDelegateX11(); | 18 virtual ~TouchscreenDelegateX11(); |
| 19 | 19 |
| 20 // OutputConfigurator::TouchscreenDelegate implementation: | 20 // OutputConfigurator::TouchscreenDelegate implementation: |
| 21 virtual void AssociateTouchscreens( | 21 virtual void AssociateTouchscreens( |
| 22 std::vector<OutputConfigurator::OutputSnapshot>* outputs) OVERRIDE; | 22 std::vector<OutputConfigurator::OutputSnapshot>* outputs) OVERRIDE; |
| 23 virtual void ConfigureCTM( | |
| 24 int touch_device_id, | |
| 25 const OutputConfigurator::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 chromeos | 30 } // namespace chromeos |
| 34 | 31 |
| 35 #endif // CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_ | 32 #endif // CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_ |
| OLD | NEW |