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

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

Issue 2183623004: Add IDLDictionaryBase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix multi-level inheritance bug Created 4 years, 5 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 497deccc3af590703b7293ec67b9c0835d1cfb38..d00421e6c939f4f18852ede307d925d313e7e423 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ToV8.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
@@ -9,6 +9,7 @@
// handle. Call sites must check IsEmpty() before using return value.
#include "bindings/core/v8/DOMDataStore.h"
+#include "bindings/core/v8/IDLDictionaryBase.h"
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/ScriptWrappable.h"
@@ -193,6 +194,11 @@ inline v8::Local<v8::Value> toV8(const Dictionary& value, v8::Local<v8::Object>
return v8::Local<v8::Value>();
}
+inline v8::Local<v8::Value> toV8(const IDLDictionaryBase& value, v8::Local<v8::Object> creationContext, v8::Isolate* isolate)
+{
+ return value.toV8Impl(creationContext, isolate);
+}
+
// Array
template<typename Sequence>

Powered by Google App Engine
This is Rietveld 408576698