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

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

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types Created 3 years, 10 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 0f0cc79c21b58b35b9fafbf8314a9da9d1e4af1b..bfbc90f34a66fcaf7b069b6160bf8cfd7d2d758d 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ToV8.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
@@ -239,6 +239,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