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