summaryrefslogtreecommitdiffstats
path: root/chromeos/display/touchscreen_delegate_x11.h
blob: 99cae0675e824b0a124ca351a27fa99534fd8678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2014 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 CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_
#define CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_

#include "chromeos/display/output_configurator.h"

struct _XDisplay;
typedef struct _XDisplay Display;

namespace chromeos {

class TouchscreenDelegateX11 : public OutputConfigurator::TouchscreenDelegate {
 public:
  TouchscreenDelegateX11();
  virtual ~TouchscreenDelegateX11();

  // OutputConfigurator::TouchscreenDelegate implementation:
  virtual void AssociateTouchscreens(
      std::vector<OutputConfigurator::OutputSnapshot>* outputs) OVERRIDE;
  virtual void ConfigureCTM(
      int touch_device_id,
      const OutputConfigurator::CoordinateTransformation& ctm) OVERRIDE;

 private:
  Display* display_;

  DISALLOW_COPY_AND_ASSIGN(TouchscreenDelegateX11);
};

}  // namespace chromeos

#endif  // CHROMEOS_DISPLAY_TOUCHSCREEN_DELEGATE_X11_H_