| OLD | NEW |
| 1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
| 2 #ifndef {{v8_original_class}}_h | 2 #ifndef {{v8_original_class}}_h |
| 3 #define {{v8_original_class}}_h | 3 #define {{v8_original_class}}_h |
| 4 | 4 |
| 5 {% for filename in header_includes %} | 5 {% for filename in header_includes %} |
| 6 #include "{{filename}}" | 6 #include "{{filename}}" |
| 7 {% endfor %} | 7 {% endfor %} |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im
pl) | 22 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im
pl) |
| 23 { | 23 { |
| 24 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf
o.GetIsolate())); | 24 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf
o.GetIsolate())); |
| 25 } | 25 } |
| 26 | 26 |
| 27 template <> | 27 template <> |
| 28 struct NativeValueTraits<{{cpp_class}}> { | 28 struct NativeValueTraits<{{cpp_class}}> { |
| 29 static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Excepti
onState&); | 29 static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Excepti
onState&); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 template <> |
| 33 struct V8TypeOf<{{cpp_class}}> { |
| 34 typedef {{v8_class}} Type; |
| 35 }; |
| 36 |
| 32 } // namespace blink | 37 } // namespace blink |
| 33 | 38 |
| 34 #endif // {{v8_original_class}}_h | 39 #endif // {{v8_original_class}}_h |
| OLD | NEW |