summaryrefslogtreecommitdiffstats
path: root/device/hid/hid_device_info_linux.h
blob: df2cd9726269890a20189f466deca2eb30d94952 (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
// Copyright 2015 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 DEVICE_HID_HID_DEVICE_INFO_LINUX_H_
#define DEVICE_HID_HID_DEVICE_INFO_LINUX_H_

#include "device/hid/hid_device_info.h"

namespace device {

class HidDeviceInfoLinux : public HidDeviceInfo {
 public:
  HidDeviceInfoLinux(const HidDeviceId& device_id,
                     const std::string& device_node,
                     uint16_t vendor_id,
                     uint16_t product_id,
                     const std::string& product_name,
                     const std::string& serial_number,
                     HidBusType bus_type,
                     const std::vector<uint8> report_descriptor);

  const std::string& device_node() const { return device_node_; }

 private:
  ~HidDeviceInfoLinux() override;

  std::string device_node_;
};

}  // namespace device

#endif  // DEVICE_HID_HID_DEVICE_INFO_LINUX_H_