OLD | NEW |
1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
2 | 2 |
3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
4 #ifndef {{v8_original_class}}_h | 4 #ifndef {{v8_original_class}}_h |
5 #define {{v8_original_class}}_h | 5 #define {{v8_original_class}}_h |
6 | 6 |
7 {% for filename in header_includes %} | 7 {% for filename in header_includes %} |
8 #include "{{filename}}" | 8 #include "{{filename}}" |
9 {% endfor %} | 9 {% endfor %} |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 v8SetReturnValue(callbackInfo, ToV8(impl, callbackInfo.Holder(), callbackInfo.
GetIsolate())); | 24 v8SetReturnValue(callbackInfo, ToV8(impl, callbackInfo.Holder(), callbackInfo.
GetIsolate())); |
25 } | 25 } |
26 | 26 |
27 template <class CallbackInfo> | 27 template <class CallbackInfo> |
28 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im
pl, v8::Local<v8::Object> creationContext) { | 28 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im
pl, v8::Local<v8::Object> creationContext) { |
29 v8SetReturnValue(callbackInfo, ToV8(impl, creationContext, callbackInfo.GetIso
late())); | 29 v8SetReturnValue(callbackInfo, ToV8(impl, creationContext, callbackInfo.GetIso
late())); |
30 } | 30 } |
31 | 31 |
32 template <> | 32 template <> |
33 struct NativeValueTraits<{{cpp_class}}> { | 33 struct NativeValueTraits<{{cpp_class}}> { |
34 static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Exception
State&); | 34 using ImplType = {{cpp_class}}; |
| 35 {{exported}}static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value
>, ExceptionState&); |
35 }; | 36 }; |
36 | 37 |
37 template <> | 38 template <> |
38 struct V8TypeOf<{{cpp_class}}> { | 39 struct V8TypeOf<{{cpp_class}}> { |
39 typedef {{v8_class}} Type; | 40 typedef {{v8_class}} Type; |
40 }; | 41 }; |
41 | 42 |
42 } // namespace blink | 43 } // namespace blink |
43 | 44 |
44 #endif // {{v8_original_class}}_h | 45 #endif // {{v8_original_class}}_h |
45 | 46 |
46 {% endfilter %}{# format_blink_cpp_source_code #} | 47 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |