summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/hid/hid_collection_info.idl
blob: 1bc289bffea3887e14a244eaff9b07c45b575659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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;
};