| 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_class}}_h | 4 #ifndef {{v8_class}}_h |
| 5 #define {{v8_class}}_h | 5 #define {{v8_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 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class {{v8_class}} final : public {{cpp_class}} { | 13 class {{v8_class}} final : public {{cpp_class}} { |
| 14 public: | 14 public: |
| 15 static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* scr
iptState) { | 15 static {{v8_class}}* Create(v8::Local<v8::Function> callback, ScriptState* scr
iptState) { |
| 16 return new {{v8_class}}(callback, scriptState); | 16 return new {{v8_class}}(callback, scriptState); |
| 17 } | 17 } |
| 18 | 18 |
| 19 ~{{v8_class}}() override; | 19 ~{{v8_class}}() override; |
| 20 | 20 |
| 21 DECLARE_VIRTUAL_TRACE(); | 21 DECLARE_VIRTUAL_TRACE(); |
| 22 | 22 |
| 23 {% for method in methods %} | 23 {% for method in methods %} |
| 24 {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', '
)}}) override; | 24 {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', '
)}}) override; |
| 25 {% endfor %} | 25 {% endfor %} |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*); | 28 {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*); |
| 29 | 29 |
| 30 ScopedPersistent<v8::Function> m_callback; | 30 ScopedPersistent<v8::Function> m_callback; |
| 31 RefPtr<ScriptState> m_scriptState; | 31 RefPtr<ScriptState> m_scriptState; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } | 34 } |
| 35 #endif // {{v8_class}}_h | 35 #endif // {{v8_class}}_h |
| 36 | 36 |
| 37 {% endfilter %}{# format_blink_cpp_source_code #} | 37 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |