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

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

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/CanvasRenderingContext2D.h ('k') | Source/core/html/canvas/DataView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/DataView.h
diff --git a/Source/core/html/canvas/DataView.h b/Source/core/html/canvas/DataView.h
index 4fd9ab8b86acd0ee094c4b2f6a06579520667014..b2482c2f3b258a86dcbb37635c460be4defba5c4 100644
--- a/Source/core/html/canvas/DataView.h
+++ b/Source/core/html/canvas/DataView.h
@@ -35,6 +35,7 @@ namespace blink {
class ExceptionState;
class DataView FINAL : public ArrayBufferView, public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtr<DataView> create(unsigned length);
static PassRefPtr<DataView> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned byteLength);
@@ -76,6 +77,8 @@ public:
return TypeDataView;
}
+ virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) OVERRIDE;
+
protected:
virtual void neuter() OVERRIDE;
@@ -94,7 +97,6 @@ private:
unsigned m_byteLength;
};
-
} // namespace blink
#endif // DataView_h
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.h ('k') | Source/core/html/canvas/DataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698