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

Side by Side Diff: device/hid/hid_report_descriptor.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 | « device/hid/hid_device_info.h ('k') | device/hid/hid_report_descriptor.cc » ('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_REPORT_DESCRIPTOR_H_ 5 #ifndef DEVICE_HID_HID_REPORT_DESCRIPTOR_H_
6 #define DEVICE_HID_HID_REPORT_DESCRIPTOR_H_ 6 #define DEVICE_HID_HID_REPORT_DESCRIPTOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 11 matching lines...) Expand all
22 ~HidReportDescriptor(); 22 ~HidReportDescriptor();
23 23
24 const std::vector<linked_ptr<HidReportDescriptorItem> >& items() const { 24 const std::vector<linked_ptr<HidReportDescriptorItem> >& items() const {
25 return items_; 25 return items_;
26 } 26 }
27 27
28 // Returns top-level collections present in the descriptor, 28 // Returns top-level collections present in the descriptor,
29 // together with max report sizes 29 // together with max report sizes
30 void GetDetails(std::vector<HidCollectionInfo>* top_level_collections, 30 void GetDetails(std::vector<HidCollectionInfo>* top_level_collections,
31 bool* has_report_id, 31 bool* has_report_id,
32 int* max_input_report_size, 32 uint16_t* max_input_report_size,
33 int* max_output_report_size, 33 uint16_t* max_output_report_size,
34 int* max_feature_report_size); 34 uint16_t* max_feature_report_size);
35 35
36 private: 36 private:
37 std::vector<linked_ptr<HidReportDescriptorItem> > items_; 37 std::vector<linked_ptr<HidReportDescriptorItem> > items_;
38 }; 38 };
39 39
40 } // namespace device 40 } // namespace device
41 41
42 #endif // DEVICE_HID_HID_REPORT_DESCRIPTOR_H_ 42 #endif // DEVICE_HID_HID_REPORT_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « device/hid/hid_device_info.h ('k') | device/hid/hid_report_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698