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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBDevice.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/#idl-def-usbtransferstatus 5 // http://wicg.github.io/webusb/#idl-def-usbtransferstatus
6 6
7 enum USBTransferStatus { 7 enum USBTransferStatus {
8 "ok", 8 "ok",
9 "stall", 9 "stall",
10 "babble" 10 "babble"
11 }; 11 };
12 12
13 // http://wicg.github.io/webusb/#device-usage 13 // http://wicg.github.io/webusb/#device-usage
14 14
15 [ 15 [
16 RuntimeEnabled=WebUSB, 16 OriginTrialEnabled=WebUSB,
17 ] interface USBDevice { 17 ] interface USBDevice {
18 readonly attribute octet usbVersionMajor; 18 readonly attribute octet usbVersionMajor;
19 readonly attribute octet usbVersionMinor; 19 readonly attribute octet usbVersionMinor;
20 readonly attribute octet usbVersionSubminor; 20 readonly attribute octet usbVersionSubminor;
21 readonly attribute octet deviceClass; 21 readonly attribute octet deviceClass;
22 readonly attribute octet deviceSubclass; 22 readonly attribute octet deviceSubclass;
23 readonly attribute octet deviceProtocol; 23 readonly attribute octet deviceProtocol;
24 readonly attribute unsigned short vendorId; 24 readonly attribute unsigned short vendorId;
25 readonly attribute unsigned short productId; 25 readonly attribute unsigned short productId;
26 readonly attribute octet deviceVersionMajor; 26 readonly attribute octet deviceVersionMajor;
(...skipping 14 matching lines...) Expand all
41 [CallWith=ScriptState] Promise<void> selectAlternateInterface(octet interfac eNumber, octet alternateSetting); 41 [CallWith=ScriptState] Promise<void> selectAlternateInterface(octet interfac eNumber, octet alternateSetting);
42 [CallWith=ScriptState] Promise<USBInTransferResult> controlTransferIn(USBCon trolTransferParameters setup, unsigned short length); 42 [CallWith=ScriptState] Promise<USBInTransferResult> controlTransferIn(USBCon trolTransferParameters setup, unsigned short length);
43 [CallWith=ScriptState] Promise<USBOutTransferResult> controlTransferOut(USBC ontrolTransferParameters setup, optional BufferSource data); 43 [CallWith=ScriptState] Promise<USBOutTransferResult> controlTransferOut(USBC ontrolTransferParameters setup, optional BufferSource data);
44 [CallWith=ScriptState] Promise<void> clearHalt(USBDirection direction, octet endpointNumber); 44 [CallWith=ScriptState] Promise<void> clearHalt(USBDirection direction, octet endpointNumber);
45 [CallWith=ScriptState] Promise<USBInTransferResult> transferIn(octet endpoin tNumber, unsigned long length); 45 [CallWith=ScriptState] Promise<USBInTransferResult> transferIn(octet endpoin tNumber, unsigned long length);
46 [CallWith=ScriptState] Promise<USBOutTransferResult> transferOut(octet endpo intNumber, BufferSource data); 46 [CallWith=ScriptState] Promise<USBOutTransferResult> transferOut(octet endpo intNumber, BufferSource data);
47 [CallWith=ScriptState] Promise<USBIsochronousInTransferResult> isochronousT ransferIn(octet endpointNumber, sequence<unsigned long> packetLengths); 47 [CallWith=ScriptState] Promise<USBIsochronousInTransferResult> isochronousT ransferIn(octet endpointNumber, sequence<unsigned long> packetLengths);
48 [CallWith=ScriptState] Promise<UsbIsochronousOutTransferResult> isochronousT ransferOut(octet endpointNumber, BufferSource data, sequence<unsigned long> pack etLengths); 48 [CallWith=ScriptState] Promise<UsbIsochronousOutTransferResult> isochronousT ransferOut(octet endpointNumber, BufferSource data, sequence<unsigned long> pack etLengths);
49 [CallWith=ScriptState] Promise<void> reset(); 49 [CallWith=ScriptState] Promise<void> reset();
50 }; 50 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698