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

Side by Side Diff: modules/webusb/USBDevice.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « modules/webusb/USBControlTransferParameters.idl ('k') | modules/webusb/USBDeviceFilter.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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/#idl-def-usbtransferstatus
6
7 enum USBTransferStatus {
8 "ok",
9 "stall",
10 "babble"
11 };
12
13 // http://wicg.github.io/webusb/#device-usage
14
15 [
16 GarbageCollected,
17 RuntimeEnabled=WebUSB,
18 ] interface USBDevice {
19 readonly attribute DOMString guid;
20 readonly attribute octet usbVersionMajor;
21 readonly attribute octet usbVersionMinor;
22 readonly attribute octet usbVersionSubminor;
23 readonly attribute octet deviceClass;
24 readonly attribute octet deviceSubclass;
25 readonly attribute octet deviceProtocol;
26 readonly attribute unsigned short vendorId;
27 readonly attribute unsigned short productId;
28 readonly attribute octet deviceVersionMajor;
29 readonly attribute octet deviceVersionMinor;
30 readonly attribute octet deviceVersionSubminor;
31 readonly attribute DOMString? manufacturerName;
32 readonly attribute DOMString? productName;
33 readonly attribute DOMString? serialNumber;
34 readonly attribute sequence<USBConfiguration> configurations;
35
36 [CallWith=ScriptState] Promise<void> open();
37 [CallWith=ScriptState] Promise<void> close();
38 [CallWith=ScriptState] Promise<void> getConfiguration();
39 [CallWith=ScriptState] Promise<void> setConfiguration(octet configurationVal ue);
40 [CallWith=ScriptState] Promise<void> claimInterface(octet interfaceNumber);
41 [CallWith=ScriptState] Promise<void> releaseInterface(octet interfaceNumber) ;
42 [CallWith=ScriptState] Promise<void> setInterface(octet interfaceNumber, oct et alternateSetting);
43 [CallWith=ScriptState] Promise<USBInTransferResult> controlTransferIn(USBCon trolTransferParameters setup, unsigned short length);
44 [CallWith=ScriptState] Promise<USBOutTransferResult> controlTransferOut(USBC ontrolTransferParameters setup, optional BufferSource data);
45 [CallWith=ScriptState] Promise<void> clearHalt(octet endpointNumber);
46 [CallWith=ScriptState] Promise<USBInTransferResult> transferIn(octet endpoin tNumber, unsigned long length);
47 [CallWith=ScriptState] Promise<USBOutTransferResult> transferOut(octet endpo intNumber, BufferSource data);
48 [CallWith=ScriptState] Promise<USBIsochronousInTransferResult> isochronousT ransferIn(octet endpointNumber, sequence<unsigned long> packetLengths);
49 [CallWith=ScriptState] Promise<UsbIsochronousOutTransferResult> isochronousT ransferOut(octet endpointNumber, BufferSource data, sequence<unsigned long> pack etLengths);
50 [CallWith=ScriptState] Promise<void> reset();
51 };
OLDNEW
« no previous file with comments | « modules/webusb/USBControlTransferParameters.idl ('k') | modules/webusb/USBDeviceFilter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698