diff options
author | reillyg <reillyg@chromium.org> | 2015-01-12 19:07:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-13 03:08:07 +0000 |
commit | 37cde99564e8a0789b5904680fa60aa046c6efcc (patch) | |
tree | 2a764f83cacfd6328117f0c502a1ec44ec2d851c /device/hid/test_report_descriptors.h | |
parent | 8dec34f8f3504352e4eef95b2aaa36c561aea930 (diff) | |
download | chromium_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/test_report_descriptors.h')
-rw-r--r-- | device/hid/test_report_descriptors.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/device/hid/test_report_descriptors.h b/device/hid/test_report_descriptors.h new file mode 100644 index 0000000..bd4d914 --- /dev/null +++ b/device/hid/test_report_descriptors.h @@ -0,0 +1,38 @@ +// Copyright (c) 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef DEVICE_HID_TEST_REPORT_DESCRIPTORS_H_ +#define DEVICE_HID_TEST_REPORT_DESCRIPTORS_H_ + +#include "base/basictypes.h" + +namespace device { + +// Digitizer descriptor from HID descriptor tool +// http://www.usb.org/developers/hidpage/dt2_4.zip +extern const uint8 kDigitizer[]; +extern const size_t kDigitizerSize; + +// Keyboard descriptor from HID descriptor tool +// http://www.usb.org/developers/hidpage/dt2_4.zip +extern const uint8 kKeyboard[]; +extern const size_t kKeyboardSize; + +// Monitor descriptor from HID descriptor tool +// http://www.usb.org/developers/hidpage/dt2_4.zip +extern const uint8 kMonitor[]; +extern const size_t kMonitorSize; + +// Mouse descriptor from HID descriptor tool +// http://www.usb.org/developers/hidpage/dt2_4.zip +extern const uint8 kMouse[]; +extern const size_t kMouseSize; + +// Logitech Unifying receiver descriptor +extern const uint8 kLogitechUnifyingReceiver[]; +extern const size_t kLogitechUnifyingReceiverSize; + +} // namespace device + +#endif // DEVICE_HID_TEST_REPORT_DESCRIPTORS_H_ |