blob: 68c4289af493bccf23445a79faba0d3f0e2954b0 [file] [log] [blame]
// Copyright 2015 The Chromium Authors
// 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/#interfaces
[
Exposed(DedicatedWorker WebUSBOnDedicatedWorkers,
ServiceWorker WebUSBOnServiceWorkers,
Window WebUSB),
SecureContext
] interface USBAlternateInterface {
[RaisesException] constructor(USBInterface deviceInterface, octet alternateSetting);
readonly attribute octet alternateSetting;
readonly attribute octet interfaceClass;
readonly attribute octet interfaceSubclass;
readonly attribute octet interfaceProtocol;
readonly attribute DOMString? interfaceName;
readonly attribute FrozenArray<USBEndpoint> endpoints;
};