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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface.h

Issue 1083003004: bindings: Moves toV8 and v8SetReturnValue out to ToV8.h and V8Binding.h. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #ifndef V8TestInterface_h 7 #ifndef V8TestInterface_h
8 #define V8TestInterface_h 8 #define V8TestInterface_h
9 9
10 #if ENABLE(CONDITION) 10 #if ENABLE(CONDITION)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 CORE_EXPORT static void registerStaticVoidMethodPartialOverloadMethodForPart ialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 57 CORE_EXPORT static void registerStaticVoidMethodPartialOverloadMethodForPart ialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
58 CORE_EXPORT static void registerPromiseMethodPartialOverloadMethodForPartial Interface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 58 CORE_EXPORT static void registerPromiseMethodPartialOverloadMethodForPartial Interface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
59 CORE_EXPORT static void registerStaticPromiseMethodPartialOverloadMethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 59 CORE_EXPORT static void registerStaticPromiseMethodPartialOverloadMethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
60 CORE_EXPORT static void registerPartial2VoidMethodMethodForPartialInterface( void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 60 CORE_EXPORT static void registerPartial2VoidMethodMethodForPartialInterface( void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
61 CORE_EXPORT static void registerPartial2StaticVoidMethodMethodForPartialInte rface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 61 CORE_EXPORT static void registerPartial2StaticVoidMethodMethodForPartialInte rface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
62 62
63 private: 63 private:
64 static InstallTemplateFunction installV8TestInterfaceTemplateFunction; 64 static InstallTemplateFunction installV8TestInterfaceTemplateFunction;
65 }; 65 };
66 66
67 template<typename CallbackInfo>
68 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceImpl ementation* impl)
69 {
70 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
71 }
72
73 template<typename CallbackInfo>
74 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI nterfaceImplementation* impl)
75 {
76 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()));
77 }
78
79 template<typename CallbackInfo>
80 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestInterface Implementation* impl, const ScriptWrappable*)
81 {
82 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate()));
83 }
84
85 template <> 67 template <>
86 struct V8TypeOf<TestInterfaceImplementation> { 68 struct V8TypeOf<TestInterfaceImplementation> {
87 typedef V8TestInterface Type; 69 typedef V8TestInterface Type;
88 }; 70 };
89 71
90 } // namespace blink 72 } // namespace blink
91 #endif // ENABLE(CONDITION) 73 #endif // ENABLE(CONDITION)
92 74
93 #endif // V8TestInterface_h 75 #endif // V8TestInterface_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/modules/TestInterface5.idl ('k') | Source/bindings/tests/results/modules/V8TestInterface5.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698