OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // http://wicg.github.io/webusb/#endpoints |
| 6 |
| 7 enum USBDirection { |
| 8 "in", |
| 9 "out" |
| 10 }; |
| 11 |
| 12 enum USBEndpointType { |
| 13 "bulk", |
| 14 "interrupt", |
| 15 "isochronous" |
| 16 }; |
| 17 |
| 18 [ |
| 19 Constructor(USBAlternateInterface alternate, octet endpointNumber, USBDirect
ion direction), |
| 20 RaisesException=Constructor, |
| 21 GarbageCollected, |
| 22 RuntimeEnabled=WebUSB, |
| 23 ] interface USBEndpoint { |
| 24 readonly attribute octet endpointNumber; |
| 25 readonly attribute USBDirection direction; |
| 26 readonly attribute USBEndpointType type; |
| 27 readonly attribute unsigned long packetSize; |
| 28 }; |
OLD | NEW |