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

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

Issue 161823002: Clean up HID backend and API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux headers 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 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_H_ 5 #ifndef DEVICE_HID_HID_DEVICE_INFO_H_
6 #define DEVICE_HID_HID_DEVICE_INFO_H_ 6 #define DEVICE_HID_HID_DEVICE_INFO_H_
7 7
8 #include <stdint.h>
8 #include <string> 9 #include <string>
9 10
10 #include "base/basictypes.h"
11
12 namespace device { 11 namespace device {
13 12
14 enum HidBusType { 13 enum HidBusType {
15 kHIDBusTypeUSB = 0, 14 kHIDBusTypeUSB = 0,
16 kHIDBusTypeBluetooth = 1, 15 kHIDBusTypeBluetooth = 1,
17 }; 16 };
18 17
19 struct HidDeviceInfo { 18 struct HidDeviceInfo {
20 HidDeviceInfo(); 19 HidDeviceInfo();
21 ~HidDeviceInfo(); 20 ~HidDeviceInfo();
22 21
23 std::string device_id; 22 std::string device_id;
24 23
25 HidBusType bus_type; 24 HidBusType bus_type;
26 uint16 vendor_id; 25 uint16_t vendor_id;
27 uint16 product_id; 26 uint16_t product_id;
28 27
29 size_t input_report_size; 28 size_t input_report_size;
30 size_t output_report_size; 29 size_t output_report_size;
31 size_t feature_report_size; 30 size_t feature_report_size;
32 31
33 uint16 usage_page; 32 uint16_t usage_page;
34 uint16 usage; 33 uint16_t usage;
35 bool has_report_id; 34 bool has_report_id;
36 35
37 std::string product_name; 36 std::string product_name;
38 std::string serial_number; 37 std::string serial_number;
39 }; 38 };
40 39
41 } // namespace device 40 } // namespace device
42 41
43 #endif // DEVICE_HID_HID_DEVICE_INFO_H_ 42 #endif // DEVICE_HID_HID_DEVICE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698