OLD | NEW |
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 Loading... |
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 |
OLD | NEW |