summaryrefslogtreecommitdiffstats
path: root/device/hid/hid_report_descriptor.h
diff options
context:
space:
mode:
authorreillyg@chromium.org <reillyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-28 22:01:26 +0000
committerreillyg@chromium.org <reillyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-28 22:01:26 +0000
commit054293034c1e79f6ee7ff5b11e6a35673d7f38a3 (patch)
tree8f1a63690fbcdb0396c25c57d9de79d04a3853f8 /device/hid/hid_report_descriptor.h
parent3e65977489925662657d91d334d6e9d1b520c60a (diff)
downloadchromium_src-054293034c1e79f6ee7ff5b11e6a35673d7f38a3.zip
chromium_src-054293034c1e79f6ee7ff5b11e6a35673d7f38a3.tar.gz
chromium_src-054293034c1e79f6ee7ff5b11e6a35673d7f38a3.tar.bz2
hid: Remove size from receive APIs and return report ID separately.
The size parameter is unnecessary when calling chrome.hid.receive and chrome.hid.receiveFeatureReport because, since the caller does not know which report ID will be returned, it should always be set to the maximum input or feature report size provided by the device. The size of the report ID is now not included in the maximum report sizes for the device since it no longer effects buffer size. In addition increase consistency by always providing the report ID to the chrome.hid.receive callback instead of including it as the first byte of the data buffer only if it is non-zero. BUG= Review URL: https://codereview.chromium.org/413913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/hid/hid_report_descriptor.h')
-rw-r--r--device/hid/hid_report_descriptor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/device/hid/hid_report_descriptor.h b/device/hid/hid_report_descriptor.h
index 94d90ad..b5017b7 100644
--- a/device/hid/hid_report_descriptor.h
+++ b/device/hid/hid_report_descriptor.h
@@ -28,6 +28,7 @@ class HidReportDescriptor {
// Returns top-level collections present in the descriptor,
// together with max report sizes
void GetDetails(std::vector<HidCollectionInfo>* top_level_collections,
+ bool* has_report_id,
int* max_input_report_size,
int* max_output_report_size,
int* max_feature_report_size);