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

Unified Diff: Source/bindings/tests/results/core/V8TestInterfaceEventInit.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/V8TestInterfaceEventInit.h
diff --git a/Source/bindings/tests/results/core/V8TestInterfaceEventInit.h b/Source/bindings/tests/results/core/V8TestInterfaceEventInit.h
index 222b726b16566315dc0f13c0ea98c12bffa92203..7891fa1f058ff20303b885da13032b94ecc86c5d 100644
--- a/Source/bindings/tests/results/core/V8TestInterfaceEventInit.h
+++ b/Source/bindings/tests/results/core/V8TestInterfaceEventInit.h
@@ -20,8 +20,8 @@ public:
static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, TestInterfaceEventInit&, ExceptionState&);
};
-v8::Handle<v8::Value> toV8(TestInterfaceEventInit&, v8::Handle<v8::Object>, v8::Isolate*);
-void toV8TestInterfaceEventInit(TestInterfaceEventInit&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate*);
+v8::Handle<v8::Value> toV8(const TestInterfaceEventInit&, v8::Handle<v8::Object>, v8::Isolate*);
+void toV8TestInterfaceEventInit(const TestInterfaceEventInit&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate*);
template<class CallbackInfo>
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceEventInit& impl)
@@ -29,6 +29,11 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceEven
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
}
+template <>
+struct NativeValueTraits<TestInterfaceEventInit> {
+ static TestInterfaceEventInit nativeValue(const v8::Handle<v8::Value>&, v8::Isolate*, ExceptionState&);
+};
+
} // namespace blink
#endif // V8TestInterfaceEventInit_h

Powered by Google App Engine
This is Rietveld 408576698