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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h

Issue 2653093002: [bindings] Allow dictionary and union types to be returned from static methods. (Closed)
Patch Set: Created 3 years, 11 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/tests/results/core/V8TestDictionary.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h b/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h
index ed11b624ed65fd52c90456818352f2169fc585a0..da84d23de361ecfc6172b39ebe990399bb54e502 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h
@@ -29,11 +29,16 @@ class V8TestDictionary {
CORE_EXPORT bool toV8TestDictionary(const TestDictionary&, v8::Local<v8::Object> dictionary, v8::Local<v8::Object> creationContext, v8::Isolate*);
-template<class CallbackInfo>
+template <class CallbackInfo>
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionary& impl) {
v8SetReturnValue(callbackInfo, ToV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
}
+template <class CallbackInfo>
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDictionary& impl, v8::Local<v8::Object> creationContext) {
+ v8SetReturnValue(callbackInfo, ToV8(impl, creationContext, callbackInfo.GetIsolate()));
+}
+
template <>
struct NativeValueTraits<TestDictionary> {
static TestDictionary nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698