| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 DEVICE_HID_HID_DEVICE_INFO_LINUX_H_ | 5 #ifndef DEVICE_HID_HID_DEVICE_INFO_LINUX_H_ |
| 6 #define DEVICE_HID_HID_DEVICE_INFO_LINUX_H_ | 6 #define DEVICE_HID_HID_DEVICE_INFO_LINUX_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "device/hid/hid_device_info.h" | 10 #include "device/hid/hid_device_info.h" |
| 9 | 11 |
| 10 namespace device { | 12 namespace device { |
| 11 | 13 |
| 12 class HidDeviceInfoLinux : public HidDeviceInfo { | 14 class HidDeviceInfoLinux : public HidDeviceInfo { |
| 13 public: | 15 public: |
| 14 HidDeviceInfoLinux(const HidDeviceId& device_id, | 16 HidDeviceInfoLinux(const HidDeviceId& device_id, |
| 15 const std::string& device_node, | 17 const std::string& device_node, |
| 16 uint16_t vendor_id, | 18 uint16_t vendor_id, |
| 17 uint16_t product_id, | 19 uint16_t product_id, |
| 18 const std::string& product_name, | 20 const std::string& product_name, |
| 19 const std::string& serial_number, | 21 const std::string& serial_number, |
| 20 HidBusType bus_type, | 22 HidBusType bus_type, |
| 21 const std::vector<uint8> report_descriptor); | 23 const std::vector<uint8_t> report_descriptor); |
| 22 | 24 |
| 23 const std::string& device_node() const { return device_node_; } | 25 const std::string& device_node() const { return device_node_; } |
| 24 | 26 |
| 25 private: | 27 private: |
| 26 ~HidDeviceInfoLinux() override; | 28 ~HidDeviceInfoLinux() override; |
| 27 | 29 |
| 28 std::string device_node_; | 30 std::string device_node_; |
| 29 }; | 31 }; |
| 30 | 32 |
| 31 } // namespace device | 33 } // namespace device |
| 32 | 34 |
| 33 #endif // DEVICE_HID_HID_DEVICE_INFO_LINUX_H_ | 35 #endif // DEVICE_HID_HID_DEVICE_INFO_LINUX_H_ |
| OLD | NEW |