blob: 61a79bafcf4cbc56fb1604718d980173aeaacd24 [file] [log] [blame]
// 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/#interfaces
[
Constructor(USBInterface deviceInterface, octet alternateSetting),
RaisesException=Constructor,
RuntimeEnabled=WebUSB,
] interface USBAlternateInterface {
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;
};