| 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 | 4 |
| 5 #ifndef {{v8_class}}_h | 5 #ifndef {{v8_class}}_h |
| 6 #define {{v8_class}}_h | 6 #define {{v8_class}}_h |
| 7 | 7 |
| 8 {% for filename in header_includes %} | 8 {% for filename in header_includes %} |
| 9 #include "{{filename}}" | 9 #include "{{filename}}" |
| 10 {% endfor %} | 10 {% endfor %} |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ScriptState; | 14 class ScriptState; |
| 15 {% for forward_declaration in forward_declarations %} |
| 16 class {{forward_declaration}}; |
| 17 {% endfor %} |
| 15 | 18 |
| 16 class {{exported}}{{v8_class}} final : public GarbageCollectedFinalized<{{v8_cla
ss}}> { | 19 class {{exported}}{{v8_class}} final : public GarbageCollectedFinalized<{{v8_cla
ss}}> { |
| 17 | 20 |
| 18 public: | 21 public: |
| 19 static {{v8_class}}* create(v8::Isolate* isolate, v8::Local<v8::Function> ca
llback) | 22 static {{v8_class}}* create(v8::Isolate* isolate, v8::Local<v8::Function> ca
llback) |
| 20 { | 23 { |
| 21 return new {{v8_class}}(isolate, callback); | 24 return new {{v8_class}}(isolate, callback); |
| 22 } | 25 } |
| 23 | 26 |
| 24 ~{{v8_class}}() = default; | 27 ~{{v8_class}}() = default; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 41 private: | 44 private: |
| 42 {{v8_class}}(v8::Isolate* isolate, v8::Local<v8::Function>); | 45 {{v8_class}}(v8::Isolate* isolate, v8::Local<v8::Function>); |
| 43 ScopedPersistent<v8::Function> m_callback; | 46 ScopedPersistent<v8::Function> m_callback; |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 } // namespace blink | 49 } // namespace blink |
| 47 | 50 |
| 48 #endif // {{v8_class}}_h | 51 #endif // {{v8_class}}_h |
| 49 | 52 |
| 50 {% endfilter %}{# format_blink_cpp_source_code #} | 53 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |