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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ToV8.h

Issue 2732093003: bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: s/isolate->GetCurrentContext()/context/ Created 3 years, 9 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: third_party/WebKit/Source/bindings/core/v8/ToV8.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8.h b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
index 012185924ed5fd4a2f0d47facdd24392c32bdb19..b19829166ee75f1c85ce0216f8a98c9d788fec02 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ToV8.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
@@ -231,6 +231,8 @@ inline v8::Local<v8::Value> ToV8(const HeapVector<T, inlineCapacity>& value,
return toV8SequenceInternal(value, creationContext, isolate);
}
+// The following two overloads are also used to convert record<K,V> IDL types
+// back into ECMAScript Objects.
template <typename T>
inline v8::Local<v8::Value> ToV8(const Vector<std::pair<String, T>>& value,
v8::Local<v8::Object> creationContext,

Powered by Google App Engine
This is Rietveld 408576698