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

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

Issue 492963007: Store HID report sizes as uint16_t. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | device/hid/hid_report_descriptor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 HidDeviceId device_id; 38 HidDeviceId device_id;
39 uint16_t vendor_id; 39 uint16_t vendor_id;
40 uint16_t product_id; 40 uint16_t product_id;
41 std::string product_name; 41 std::string product_name;
42 std::string serial_number; 42 std::string serial_number;
43 HidBusType bus_type; 43 HidBusType bus_type;
44 44
45 // Top-Level Collections information. 45 // Top-Level Collections information.
46 std::vector<HidCollectionInfo> collections; 46 std::vector<HidCollectionInfo> collections;
47 bool has_report_id; 47 bool has_report_id;
48 int max_input_report_size; 48 uint16_t max_input_report_size;
49 int max_output_report_size; 49 uint16_t max_output_report_size;
50 int max_feature_report_size; 50 uint16_t max_feature_report_size;
51 }; 51 };
52 52
53 } // namespace device 53 } // namespace device
54 54
55 #endif // DEVICE_HID_HID_DEVICE_INFO_H_ 55 #endif // DEVICE_HID_HID_DEVICE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | device/hid/hid_report_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698