Add git cl format presubmit warning for extension and apps.
[chromium-blink-merge.git] / device / hid / hid_device_info.h
blobb6659444a893c5004adfd96390a91aedf47c0da2
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_HID_HID_DEVICE_INFO_H_
6 #define DEVICE_HID_HID_DEVICE_INFO_H_
8 #include <string>
10 #include "base/basictypes.h"
12 namespace device {
14 enum HidBusType {
15 kHIDBusTypeUSB = 0,
16 kHIDBusTypeBluetooth = 1,
19 struct HidDeviceInfo {
20 HidDeviceInfo();
21 ~HidDeviceInfo();
23 std::string device_id;
25 HidBusType bus_type;
26 uint16 vendor_id;
27 uint16 product_id;
29 size_t input_report_size;
30 size_t output_report_size;
31 size_t feature_report_size;
33 uint16 usage_page;
34 uint16 usage;
35 bool has_report_id;
37 std::string product_name;
38 std::string serial_number;
41 } // namespace device
43 #endif // DEVICE_HID_HID_DEVICE_INFO_H_