| // Copyright 2019 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. |
| |
| // Information about a HID collection, including its reports and subcollections. |
| // https://wicg.github.io/webhid/index.html#report-descriptor |
| |
| dictionary HIDCollectionInfo { |
| // The 16-bit usage page associated with this collection. Zero if not set. |
| unsigned short usagePage; |
| |
| // The 16-bit usage value associated with this collection. Zero if not set. |
| unsigned short usage; |
| |
| // The 8-bit collection type for this collection. |
| octet type; |
| |
| // The subcollections of this collection, in the order they were encountered |
| // in the report descriptor. |
| sequence<HIDCollectionInfo> children; |
| |
| // Input, output, and feature reports described in this collection, sorted |
| // by report ID. If this is a subcollection, only the portion of the report |
| // described within this collection is included. |
| sequence<HIDReportInfo> inputReports; |
| sequence<HIDReportInfo> outputReports; |
| sequence<HIDReportInfo> featureReports; |
| }; |