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

Unified Diff: gin/array_buffer.cc

Issue 654653005: Rewrite gin/function_template.h to use C++11 variadic templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-add assignment operator. 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 | « gin/array_buffer.h ('k') | gin/function_template.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/array_buffer.cc
diff --git a/gin/array_buffer.cc b/gin/array_buffer.cc
index b777402e644ff49a39365f623d8d79b4efb13515..aecfe26a2b11efe83beaa0cfa1417430bba11c99 100644
--- a/gin/array_buffer.cc
+++ b/gin/array_buffer.cc
@@ -130,6 +130,14 @@ ArrayBuffer::ArrayBuffer()
num_bytes_(0) {
}
+ArrayBuffer::ArrayBuffer(const ArrayBuffer& other)
+ : private_(other.private_),
+ bytes_(other.bytes_),
+ num_bytes_(other.num_bytes_) {
+
+}
+
+
ArrayBuffer::ArrayBuffer(v8::Isolate* isolate,
v8::Handle<v8::ArrayBuffer> array) {
private_ = ArrayBuffer::Private::From(isolate, array);
@@ -165,6 +173,12 @@ ArrayBufferView::ArrayBufferView()
num_bytes_(0) {
}
+ArrayBufferView::ArrayBufferView(const ArrayBufferView& other)
+ : array_buffer_(other.array_buffer_),
+ offset_(other.offset_),
+ num_bytes_(other.num_bytes_) {
+}
+
ArrayBufferView::ArrayBufferView(v8::Isolate* isolate,
v8::Handle<v8::ArrayBufferView> view)
: array_buffer_(isolate, view->Buffer()),
« no previous file with comments | « gin/array_buffer.h ('k') | gin/function_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698