OLD | NEW |
---|---|
(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 "core/dom/DOMArrayBuffer.h" | |
10 #include "platform/heap/Handle.h" | |
11 #include "public/platform/modules/webusb/WebUSBTransferInfo.h" | |
12 #include "wtf/text/WTFString.h" | |
13 | |
14 namespace blink { | |
15 | |
16 class ExceptionState; | |
17 class USBDevice; | |
18 class USBInterface; | |
Reilly Grant (use Gerrit)
2015/08/24 21:47:17
These forward declarations are unnecessary.
Ken Rockot(use gerrit already)
2015/08/24 22:52:37
Done.
| |
19 | |
20 class USBOutTransferResult | |
21 : public GarbageCollected<USBOutTransferResult> | |
22 , public ScriptWrappable { | |
23 DEFINE_WRAPPERTYPEINFO(); | |
24 public: | |
25 static USBOutTransferResult* create(const String& status, unsigned bytesWrit ten) | |
26 { | |
27 return new USBOutTransferResult(status, bytesWritten); | |
28 } | |
29 | |
30 USBOutTransferResult(const String& status, unsigned bytesWritten) | |
31 : m_status(status) | |
32 , m_bytesWritten(bytesWritten) | |
33 { | |
34 } | |
35 | |
36 String status() const { return m_status; } | |
37 unsigned bytesWritten() const { return m_bytesWritten; } | |
38 | |
39 DEFINE_INLINE_TRACE() { } | |
40 | |
41 private: | |
42 const String m_status; | |
43 const unsigned m_bytesWritten; | |
44 }; | |
45 | |
46 } // namespace blink | |
47 | |
48 #endif // USBOutTransferResult_h | |
OLD | NEW |