summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webusb/usb_endpoint.idl
blob: 679e88250edf2db517fd982f2f4ebf0d61ebde86 (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 2015 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.

// https://wicg.github.io/webusb/#endpoints

enum USBDirection {
    "in",
    "out"
};

enum USBEndpointType {
    "bulk",
    "interrupt",
    "isochronous"
};

[
    Constructor(USBAlternateInterface alternate, octet endpointNumber, USBDirection direction),
    Exposed(DedicatedWorker WebUSBOnDedicatedWorkers, Window WebUSB),
    RaisesException=Constructor,
    SecureContext
] interface USBEndpoint {
    readonly attribute octet endpointNumber;
    readonly attribute USBDirection direction;
    readonly attribute USBEndpointType type;
    readonly attribute unsigned long packetSize;
};