| 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 {{cpp_class}}_h | 5 #ifndef {{cpp_class}}_h |
| 6 #define {{cpp_class}}_h | 6 #define {{cpp_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 %} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object
>& wrapper) { | 36 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object
>& wrapper) { |
| 37 DCHECK(!m_callback.isEmpty()); | 37 DCHECK(!m_callback.isEmpty()); |
| 38 m_callback.setReference(wrapper, isolate); | 38 m_callback.setReference(wrapper, isolate); |
| 39 } | 39 } |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>); | 42 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>); |
| 43 | 43 |
| 44 RefPtr<ScriptState> m_scriptState; | 44 RefPtr<ScriptState> m_scriptState; |
| 45 ScopedPersistent<v8::Function> m_callback; | 45 TraceWrapperV8Reference<v8::Function> m_callback; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // {{cpp_class}}_h | 50 #endif // {{cpp_class}}_h |
| 51 | 51 |
| 52 {% endfilter %}{# format_blink_cpp_source_code #} | 52 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |