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

Unified Diff: Source/modules/encoding/TextEncoder.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 2 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
Index: Source/modules/encoding/TextEncoder.cpp
diff --git a/Source/modules/encoding/TextEncoder.cpp b/Source/modules/encoding/TextEncoder.cpp
index a9e15e8a38815866bd0ce1eb6bc786ffcb66368f..d2a241fd281b1d8e47e09aab579b9bcbee807b48 100644
--- a/Source/modules/encoding/TextEncoder.cpp
+++ b/Source/modules/encoding/TextEncoder.cpp
@@ -72,7 +72,7 @@ String TextEncoder::encoding() const
return name;
}
-PassRefPtr<Uint8Array> TextEncoder::encode(const String& input)
+PassRefPtr<DOMUint8Array> TextEncoder::encode(const String& input)
{
CString result;
if (input.is8Bit())
@@ -83,7 +83,7 @@ PassRefPtr<Uint8Array> TextEncoder::encode(const String& input)
const char* buffer = result.data();
const unsigned char* unsignedBuffer = reinterpret_cast<const unsigned char*>(buffer);
- return Uint8Array::create(unsignedBuffer, result.length());
+ return DOMUint8Array::create(unsignedBuffer, result.length());
}
} // namespace blink
« no previous file with comments | « Source/modules/encoding/TextEncoder.h ('k') | Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698