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 enum USBDirection { |
| 6 "in", |
| 7 "out" |
| 8 }; |
| 9 |
| 10 enum USBEndpointType { |
| 11 "bulk", |
| 12 "interrupt", |
| 13 "isochronous" |
| 14 }; |
| 15 |
| 16 [ |
| 17 Constructor(USBAlternateInterface alternate, octet endpointIndex), |
| 18 RaisesException=Constructor, |
| 19 GarbageCollected, |
| 20 RuntimeEnabled=WebUSB, |
| 21 ] interface USBEndpoint { |
| 22 readonly attribute octet endpointNumber; |
| 23 readonly attribute USBDirection direction; |
| 24 readonly attribute USBEndpointType type; |
| 25 readonly attribute unsigned long packetSize; |
| 26 }; |
OLD | NEW |