blob: 917a12951484fa5471f5a9b038bdbc5eeae35500 [file] [log] [blame]
// Copyright 2014 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.
#include <string>
#include <vector>
#include "build/build_config.h"
#include "device/hid/hid_collection_info.h"
namespace device {
enum HidBusType {
kHIDBusTypeUSB = 0,
kHIDBusTypeBluetooth = 1,
typedef std::string HidDeviceId;
extern const char kInvalidHidDeviceId[];
struct HidDeviceInfo {
// Device identification.
HidDeviceId device_id;
uint16_t vendor_id;
uint16_t product_id;
std::string product_name;
std::string serial_number;
HidBusType bus_type;
// Top-Level Collections information.
std::vector<HidCollectionInfo> collections;
bool has_report_id;
size_t max_input_report_size;
size_t max_output_report_size;
size_t max_feature_report_size;
#if defined(OS_LINUX)
std::string device_node;
} // namespace device