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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBDevice.h

Issue 1635903004: Add support for isochronous transfers in WebUSB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb_isoc
Patch Set: Fix tense. Created 4 years, 10 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 #ifndef USBDevice_h 5 #ifndef USBDevice_h
6 #define USBDevice_h 6 #define USBDevice_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
11 #include "core/dom/ContextLifecycleObserver.h" 11 #include "core/dom/ContextLifecycleObserver.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "public/platform/modules/webusb/WebUSBDevice.h" 13 #include "public/platform/modules/webusb/WebUSBDevice.h"
14 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h" 14 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h"
15 #include "wtf/Vector.h"
15 16
16 namespace blink { 17 namespace blink {
17 18
18 class ScriptPromiseResolver; 19 class ScriptPromiseResolver;
19 class ScriptState; 20 class ScriptState;
20 class USBConfiguration; 21 class USBConfiguration;
21 class USBControlTransferParameters; 22 class USBControlTransferParameters;
22 23
23 class USBDevice 24 class USBDevice
24 : public GarbageCollectedFinalized<USBDevice> 25 : public GarbageCollectedFinalized<USBDevice>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 ScriptPromise setConfiguration(ScriptState*, uint8_t configurationValue); 73 ScriptPromise setConfiguration(ScriptState*, uint8_t configurationValue);
73 ScriptPromise claimInterface(ScriptState*, uint8_t interfaceNumber); 74 ScriptPromise claimInterface(ScriptState*, uint8_t interfaceNumber);
74 ScriptPromise releaseInterface(ScriptState*, uint8_t interfaceNumber); 75 ScriptPromise releaseInterface(ScriptState*, uint8_t interfaceNumber);
75 ScriptPromise setInterface(ScriptState*, uint8_t interfaceNumber, uint8_t al ternateSetting); 76 ScriptPromise setInterface(ScriptState*, uint8_t interfaceNumber, uint8_t al ternateSetting);
76 ScriptPromise controlTransferIn(ScriptState*, const USBControlTransferParame ters& setup, unsigned length); 77 ScriptPromise controlTransferIn(ScriptState*, const USBControlTransferParame ters& setup, unsigned length);
77 ScriptPromise controlTransferOut(ScriptState*, const USBControlTransferParam eters& setup); 78 ScriptPromise controlTransferOut(ScriptState*, const USBControlTransferParam eters& setup);
78 ScriptPromise controlTransferOut(ScriptState*, const USBControlTransferParam eters& setup, const ArrayBufferOrArrayBufferView& data); 79 ScriptPromise controlTransferOut(ScriptState*, const USBControlTransferParam eters& setup, const ArrayBufferOrArrayBufferView& data);
79 ScriptPromise clearHalt(ScriptState*, uint8_t endpointNumber); 80 ScriptPromise clearHalt(ScriptState*, uint8_t endpointNumber);
80 ScriptPromise transferIn(ScriptState*, uint8_t endpointNumber, unsigned leng th); 81 ScriptPromise transferIn(ScriptState*, uint8_t endpointNumber, unsigned leng th);
81 ScriptPromise transferOut(ScriptState*, uint8_t endpointNumber, const ArrayB ufferOrArrayBufferView& data); 82 ScriptPromise transferOut(ScriptState*, uint8_t endpointNumber, const ArrayB ufferOrArrayBufferView& data);
83 ScriptPromise isochronousTransferIn(ScriptState*, uint8_t endpointNumber, Ve ctor<unsigned> packetLengths);
84 ScriptPromise isochronousTransferOut(ScriptState*, uint8_t endpointNumber, c onst ArrayBufferOrArrayBufferView& data, Vector<unsigned> packetLengths);
82 ScriptPromise reset(ScriptState*); 85 ScriptPromise reset(ScriptState*);
83 86
84 void contextDestroyed() override; 87 void contextDestroyed() override;
85 88
86 DECLARE_TRACE(); 89 DECLARE_TRACE();
87 90
88 private: 91 private:
89 OwnPtr<WebUSBDevice> m_device; 92 OwnPtr<WebUSBDevice> m_device;
90 }; 93 };
91 94
92 } // namespace blink 95 } // namespace blink
93 96
94 #endif // USBDevice_h 97 #endif // USBDevice_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/webusb/USBDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698