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

Unified Diff: Source/bindings/tests/results/core/V8TestDictionary.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/V8TestDictionary.h
diff --git a/Source/bindings/tests/results/core/V8TestDictionary.h b/Source/bindings/tests/results/core/V8TestDictionary.h
index ff9c53121781e6552377129a6fa05a0edecc57ef..3dfba3d5788f54b6f10cac1c7f1e084b42582d60 100644
--- a/Source/bindings/tests/results/core/V8TestDictionary.h
+++ b/Source/bindings/tests/results/core/V8TestDictionary.h
@@ -20,8 +20,8 @@ public:
static void toImpl(v8::Isolate*, v8::Handle<v8::Value>, TestDictionary&, ExceptionState&);
};
-v8::Handle<v8::Value> toV8(TestDictionary&, v8::Handle<v8::Object>, v8::Isolate*);
-void toV8TestDictionary(TestDictionary&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate*);
+v8::Handle<v8::Value> toV8(const TestDictionary&, v8::Handle<v8::Object>, v8::Isolate*);
+void toV8TestDictionary(const TestDictionary&, v8::Handle<v8::Object> dictionary, v8::Handle<v8::Object> creationContext, v8::Isolate*);
template<class CallbackInfo>
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionary& impl)
@@ -29,6 +29,11 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionary& i
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
}
+template <>
+struct NativeValueTraits<TestDictionary> {
+ static TestDictionary nativeValue(const v8::Handle<v8::Value>&, v8::Isolate*, ExceptionState&);
+};
+
} // namespace blink
#endif // V8TestDictionary_h
« no previous file with comments | « Source/bindings/tests/results/core/TestDictionary.cpp ('k') | Source/bindings/tests/results/core/V8TestDictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698