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

Side by Side Diff: public/platform/modules/webusb/WebUSBTransferInfo.h

Issue 1245363002: Add WebUSB bindings and client interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: iface ctors, OWNERS, rebase Created 5 years, 4 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 | « public/platform/modules/webusb/WebUSBError.h ('k') | public/web/WebFrameClient.h » ('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 #ifndef WebUSBTransferInfo_h
6 #define WebUSBTransferInfo_h
7
8 #include "public/platform/WebVector.h"
9
10 namespace blink {
11
12 // Information about a completed USB transfer.
13 struct WebUSBTransferInfo {
14 enum Status {
15 StatusOk,
16 StatusStall,
17 StatusBabble,
18 };
19
20 WebUSBTransferInfo()
21 : status(StatusOk)
22 , bytesWritten(0)
23 {
24 }
25
26 Status status;
27
28 // Data received, if this is an inbound transfer.
29 WebVector<uint8_t> data;
30
31 // Number of bytes written if this is an outbound transfer.
32 uint32_t bytesWritten;
33 };
34
35 } // namespace blink
36
37 #endif // WebUSBTransferInfo_h
OLDNEW
« no previous file with comments | « public/platform/modules/webusb/WebUSBError.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698