Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBEndpoint.idl

Issue 2274303002: Enable the WebUSB Origin Trial. (Closed)
Patch Set: Revert update to global-interface-listing-expected.txt. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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://wicg.github.io/webusb/#endpoints 5 // http://wicg.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 RuntimeEnabled=WebUSB, 21 OriginTrialEnabled=WebUSB,
22 ] interface USBEndpoint { 22 ] interface USBEndpoint {
23 readonly attribute octet endpointNumber; 23 readonly attribute octet endpointNumber;
24 readonly attribute USBDirection direction; 24 readonly attribute USBDirection direction;
25 readonly attribute USBEndpointType type; 25 readonly attribute USBEndpointType type;
26 readonly attribute unsigned long packetSize; 26 readonly attribute unsigned long packetSize;
27 }; 27 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698