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

Unified Diff: Source/core/html/canvas/DataView.cpp

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/core/html/canvas/DataView.h ('k') | Source/core/html/canvas/EXTBlendMinMax.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/DataView.cpp
diff --git a/Source/core/html/canvas/DataView.cpp b/Source/core/html/canvas/DataView.cpp
index 704dd9f2020f799ba3747bc6550034124f696376..c0a18ea3b126660504dde623c23168bad388b546 100644
--- a/Source/core/html/canvas/DataView.cpp
+++ b/Source/core/html/canvas/DataView.cpp
@@ -27,6 +27,8 @@
#include "core/html/canvas/DataView.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/custom/V8DataViewCustom.h"
+#include "bindings/core/v8/custom/V8TypedArrayCustom.h"
#include "core/dom/ExceptionCode.h"
#include "platform/CheckedInt.h"
#include "wtf/CPU.h"
@@ -239,10 +241,15 @@ void DataView::setFloat64(unsigned byteOffset, double value, bool littleEndian,
setData<double>(byteOffset, value, littleEndian, exceptionState);
}
+v8::Handle<v8::Object> DataView::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+{
+ return V8TypedArray<DataView>::wrap(this, creationContext, isolate);
+}
+
void DataView::neuter()
{
ArrayBufferView::neuter();
m_byteLength = 0;
}
-}
+} // namespace blink
« no previous file with comments | « Source/core/html/canvas/DataView.h ('k') | Source/core/html/canvas/EXTBlendMinMax.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698