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 #include "ui/events/devices/input_device.h" | 5 #include "ui/events/devices/input_device.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 InputDevice::InputDevice(int id, | 24 InputDevice::InputDevice(int id, |
25 InputDeviceType type, | 25 InputDeviceType type, |
26 const std::string& name, | 26 const std::string& name, |
27 const base::FilePath& sys_path, | 27 const base::FilePath& sys_path, |
28 uint16_t vendor, | 28 uint16_t vendor, |
29 uint16_t product) | 29 uint16_t product) |
30 : id(id), | 30 : id(id), |
31 type(type), | 31 type(type), |
32 name(name), | 32 name(name), |
| 33 enabled(true), |
33 sys_path(sys_path), | 34 sys_path(sys_path), |
34 vendor_id(vendor), | 35 vendor_id(vendor), |
35 product_id(product) {} | 36 product_id(product) {} |
36 | 37 |
37 InputDevice::InputDevice(const InputDevice& other) = default; | 38 InputDevice::InputDevice(const InputDevice& other) = default; |
38 | 39 |
39 InputDevice::~InputDevice() { | 40 InputDevice::~InputDevice() { |
40 } | 41 } |
41 | 42 |
42 } // namespace ui | 43 } // namespace ui |
OLD | NEW |