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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h

Issue 1639503002: Change USBTransferInResult.data to a DataView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webusb/USBInTransferResult.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
index 5d27e4745b6bbbe489bf0929e346229a0a9c4fdb..8f559e6222e1e0a9bfbde37e942c65ed903a094a 100644
--- a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
+++ b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
@@ -7,6 +7,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/DOMArrayBuffer.h"
+#include "core/dom/DOMDataView.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/webusb/WebUSBTransferInfo.h"
#include "wtf/text/WTFString.h"
@@ -25,20 +26,20 @@ public:
USBInTransferResult(const String& status, const WebVector<uint8_t> data)
: m_status(status)
- , m_data(DOMArrayBuffer::create(data.data(), data.size()))
+ , m_data(DOMDataView::create(DOMArrayBuffer::create(data.data(), data.size()), 0, data.size()))
{
}
virtual ~USBInTransferResult() { }
String status() const { return m_status; }
- PassRefPtr<DOMArrayBuffer> data() const { return m_data; }
+ PassRefPtr<DOMDataView> data() const { return m_data; }
DEFINE_INLINE_TRACE() { }
private:
const String m_status;
- const RefPtr<DOMArrayBuffer> m_data;
+ const RefPtr<DOMDataView> m_data;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webusb/USBInTransferResult.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698