| 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_EVENTS_DEVICES_INPUT_DEVICE_H_ | 5 #ifndef UI_EVENTS_DEVICES_INPUT_DEVICE_H_ |
| 6 #define UI_EVENTS_DEVICES_INPUT_DEVICE_H_ | 6 #define UI_EVENTS_DEVICES_INPUT_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // ID of the device. This ID is unique between all input devices. | 39 // ID of the device. This ID is unique between all input devices. |
| 40 int id; | 40 int id; |
| 41 | 41 |
| 42 // The type of the input device. | 42 // The type of the input device. |
| 43 InputDeviceType type; | 43 InputDeviceType type; |
| 44 | 44 |
| 45 // Name of the device. | 45 // Name of the device. |
| 46 std::string name; | 46 std::string name; |
| 47 | 47 |
| 48 // If the device is enabled, and whether events should be dispatched to UI. |
| 49 bool enabled = false; |
| 50 |
| 48 // The path to the input device in the sysfs filesystem. | 51 // The path to the input device in the sysfs filesystem. |
| 49 base::FilePath sys_path; | 52 base::FilePath sys_path; |
| 50 | 53 |
| 51 // USB-style device identifiers, where available, or 0 if unavailable. | 54 // USB-style device identifiers, where available, or 0 if unavailable. |
| 52 uint16_t vendor_id; | 55 uint16_t vendor_id; |
| 53 uint16_t product_id; | 56 uint16_t product_id; |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } // namespace ui | 59 } // namespace ui |
| 57 | 60 |
| 58 #endif // UI_EVENTS_DEVICES_INPUT_DEVICE_H_ | 61 #endif // UI_EVENTS_DEVICES_INPUT_DEVICE_H_ |
| OLD | NEW |