summaryrefslogtreecommitdiffstats
path: root/device/hid/hid_report_descriptor.h
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2015-01-12 19:07:11 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-13 03:08:07 +0000
commit37cde99564e8a0789b5904680fa60aa046c6efcc (patch)
tree2a764f83cacfd6328117f0c502a1ec44ec2d851c /device/hid/hid_report_descriptor.h
parent8dec34f8f3504352e4eef95b2aaa36c561aea930 (diff)
downloadchromium_src-37cde99564e8a0789b5904680fa60aa046c6efcc.zip
chromium_src-37cde99564e8a0789b5904680fa60aa046c6efcc.tar.gz
chromium_src-37cde99564e8a0789b5904680fa60aa046c6efcc.tar.bz2
Include raw HID report descriptor in HID device info.
This change includes the raw HID report descriptor in the HidDeviceInfo class and exposes it to apps and extensions using the chrome.hid API. For simplicity on OS X the platform APIs for collecting information from the report descriptor are no longer used and instead the parsing code from Linux is used. On Windows the raw HID report descriptor is not available because Windows exposes HID devices on a per-top-level collection basis. BUG=442818 Review URL: https://codereview.chromium.org/801833003 Cr-Commit-Position: refs/heads/master@{#311192}
Diffstat (limited to 'device/hid/hid_report_descriptor.h')
-rw-r--r--device/hid/hid_report_descriptor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/hid/hid_report_descriptor.h b/device/hid/hid_report_descriptor.h
index 61412c2..40a576c 100644
--- a/device/hid/hid_report_descriptor.h
+++ b/device/hid/hid_report_descriptor.h
@@ -18,7 +18,7 @@ namespace device {
class HidReportDescriptor {
public:
- HidReportDescriptor(const uint8_t* bytes, size_t size);
+ HidReportDescriptor(const std::vector<uint8>& bytes);
~HidReportDescriptor();
const std::vector<linked_ptr<HidReportDescriptorItem> >& items() const {