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