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

Unified Diff: Source/bindings/tests/results/core/V8TestDictionaryDerived.h

Issue 759893002: IDL: Auto-generate NativeValueTraits for IDL dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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: Source/bindings/tests/results/core/V8TestDictionaryDerived.h
diff --git a/Source/bindings/tests/results/core/V8TestDictionaryDerived.h b/Source/bindings/tests/results/core/V8TestDictionaryDerived.h
index 4ae5493ab2bf7344896f0d047c69eade1b664831..638b4c63a46a19856d80702ecd5f93cabde9ea6e 100644
--- a/Source/bindings/tests/results/core/V8TestDictionaryDerived.h
+++ b/Source/bindings/tests/results/core/V8TestDictionaryDerived.h
@@ -20,8 +20,8 @@ public:
static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, TestDictionaryDerivedImplementedAs&, ExceptionState&);
};
-v8::Handle<v8::Value> toV8(TestDictionaryDerivedImplementedAs&, v8::Handle<v8::Object>, v8::Isolate*);
-void toV8TestDictionaryDerivedImplementedAs(TestDictionaryDerivedImplementedAs&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate*);
+v8::Handle<v8::Value> toV8(const TestDictionaryDerivedImplementedAs&, v8::Handle<v8::Object>, v8::Isolate*);
+void toV8TestDictionaryDerivedImplementedAs(const TestDictionaryDerivedImplementedAs&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate*);
template<class CallbackInfo>
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionaryDerivedImplementedAs& impl)
@@ -29,6 +29,11 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionaryDer
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
}
+template <>
+struct NativeValueTraits<TestDictionaryDerivedImplementedAs> {
+ static TestDictionaryDerivedImplementedAs nativeValue(const v8::Handle<v8::Value>&, v8::Isolate*, ExceptionState&);
+};
+
} // namespace blink
#endif // V8TestDictionaryDerived_h

Powered by Google App Engine
This is Rietveld 408576698