Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: device/hid/hid_device_info.h

Issue 143883005: HID backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hid-impl-base
Patch Set: Really fix tests for lack of testing hardware; adapt to ancient libudev in the cros distro Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef DEVICE_HID_HID_DEVICE_INFO_H_
6 #define DEVICE_HID_HID_DEVICE_INFO_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11
12 namespace device {
13
14 enum HidBusType {
15 kHIDBusTypeUSB = 0,
16 kHIDBusTypeBluetooth = 1,
17 };
18
19 struct HidDeviceInfo {
20 HidDeviceInfo();
21 ~HidDeviceInfo();
22
23 std::string device_id;
24
25 HidBusType bus_type;
26 uint16 vendor_id;
27 uint16 product_id;
28
29 size_t input_report_size;
30 size_t output_report_size;
31 size_t feature_report_size;
32
33 uint16 usage_page;
34 uint16 usage;
35 bool has_report_id;
36
37 std::string product_name;
38 std::string serial_number;
39 };
40
41 } // namespace device
42
43 #endif // DEVICE_HID_HID_DEVICE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698