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

Side by Side Diff: Source/modules/webusb/USBOutTransferResult.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 | « Source/modules/webusb/USBInterface.idl ('k') | Source/modules/webusb/USBOutTransferResult.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 #ifndef USBOutTransferResult_h
6 #define USBOutTransferResult_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/Heap.h"
10
11 namespace blink {
12
13 class USBOutTransferResult
14 : public GarbageCollected<USBOutTransferResult>
15 , public ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO();
17 public:
18 static USBOutTransferResult* create(const String& status, unsigned bytesWrit ten)
19 {
20 return new USBOutTransferResult(status, bytesWritten);
21 }
22
23 USBOutTransferResult(const String& status, unsigned bytesWritten)
24 : m_status(status)
25 , m_bytesWritten(bytesWritten)
26 {
27 }
28
29 String status() const { return m_status; }
30 unsigned bytesWritten() const { return m_bytesWritten; }
31
32 DEFINE_INLINE_TRACE() { }
33
34 private:
35 String m_status;
36 unsigned m_bytesWritten;
37 };
38
39 } // namespace blink
40
41 #endif // USBOutTransferResult_h
OLDNEW
« no previous file with comments | « Source/modules/webusb/USBInterface.idl ('k') | Source/modules/webusb/USBOutTransferResult.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698