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

Unified Diff: Source/wtf/TypedArrayBase.h

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
« no previous file with comments | « Source/wtf/ArrayBufferContents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/TypedArrayBase.h
diff --git a/Source/wtf/TypedArrayBase.h b/Source/wtf/TypedArrayBase.h
index 6319f118e1879c2fd90bd94c369f24ff19c282b8..7679abccc6056aa4e33d37d81ab7cb2306f46abe 100644
--- a/Source/wtf/TypedArrayBase.h
+++ b/Source/wtf/TypedArrayBase.h
@@ -34,7 +34,9 @@ namespace WTF {
template <typename T>
class TypedArrayBase : public ArrayBufferView {
- public:
+public:
+ typedef T ValueType;
+
T* data() const { return static_cast<T*>(baseAddress()); }
bool set(TypedArrayBase<T>* array, unsigned offset)
« no previous file with comments | « Source/wtf/ArrayBufferContents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698