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
3 // found in the LICENSE file.
4 
5 #include "ui/events/devices/touchscreen_device.h"
6 
7 #include <string>
8 
9 #include "ui/events/devices/input_device.h"
10 
11 namespace ui {
12 
13 TouchscreenDevice::TouchscreenDevice() = default;
14 
TouchscreenDevice(int id,InputDeviceType type,const std::string & name,const gfx::Size & size,int touch_points,bool has_stylus)15 TouchscreenDevice::TouchscreenDevice(int id,
16                                      InputDeviceType type,
17                                      const std::string& name,
18                                      const gfx::Size& size,
19                                      int touch_points,
20                                      bool has_stylus)
21     : InputDevice(id, type, name),
22       size(size),
23       touch_points(touch_points),
24       has_stylus(has_stylus) {}
25 
TouchscreenDevice(const InputDevice & input_device,const gfx::Size & size,int touch_points,bool has_stylus)26 TouchscreenDevice::TouchscreenDevice(const InputDevice& input_device,
27                                      const gfx::Size& size,
28                                      int touch_points,
29                                      bool has_stylus)
30     : InputDevice(input_device),
31       size(size),
32       touch_points(touch_points),
33       has_stylus(has_stylus) {}
34 
35 TouchscreenDevice::TouchscreenDevice(const TouchscreenDevice& other) = default;
36 
37 TouchscreenDevice::~TouchscreenDevice() = default;
38 
39 }  // namespace ui
40