| OLD | NEW | 
|   1 {% include 'copyright_block.txt' %} |   1 {% include 'copyright_block.txt' %} | 
|   2 #ifndef {{v8_class}}_h |   2 #ifndef {{v8_class}}_h | 
|   3 #define {{v8_class}}_h |   3 #define {{v8_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  | 
|  11 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback { |  11 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback { | 
|  12     WILL_BE_USING_GARBAGE_COLLECTED_MIXIN({{v8_class}}); |  12     USING_GARBAGE_COLLECTED_MIXIN({{v8_class}}); | 
|  13 public: |  13 public: | 
|  14     static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* s
    criptState) |  14     static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* s
    criptState) | 
|  15     { |  15     { | 
|  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 private: |  26 private: | 
|  27     {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*); |  27     {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*); | 
|  28  |  28  | 
|  29     ScopedPersistent<v8::Function> m_callback; |  29     ScopedPersistent<v8::Function> m_callback; | 
|  30     RefPtr<ScriptState> m_scriptState; |  30     RefPtr<ScriptState> m_scriptState; | 
|  31 }; |  31 }; | 
|  32  |  32  | 
|  33 } |  33 } | 
|  34 #endif // {{v8_class}}_h |  34 #endif // {{v8_class}}_h | 
| OLD | NEW |