| 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 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 { | 69 { |
| 70 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); | 70 visitor->trace(scriptWrappable->toImpl<{{cpp_class}}>()); |
| 71 } | 71 } |
| 72 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWr
appable) | 72 static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWr
appable) |
| 73 { | 73 { |
| 74 visitor->traceWrappers(scriptWrappable->toImpl<{{cpp_class}}>()); | 74 visitor->traceWrappers(scriptWrappable->toImpl<{{cpp_class}}>()); |
| 75 } | 75 } |
| 76 {% if has_visit_dom_wrapper %} | 76 {% if has_visit_dom_wrapper %} |
| 77 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis
tent<v8::Object>&); | 77 static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persis
tent<v8::Object>&); |
| 78 {% endif %} | 78 {% endif %} |
| 79 {% if has_visit_dom_wrapper_extra %} |
| 80 static void visitDOMWrapperExtra(v8::Isolate*, ScriptWrappable*, const v8::P
ersistent<v8::Object>&); |
| 81 {% endif %} |
| 79 {% for method in methods %} | 82 {% for method in methods %} |
| 80 {% if method.is_custom %} | 83 {% if method.is_custom %} |
| 81 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 84 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
| 82 {% endif %} | 85 {% endif %} |
| 83 {% if method.is_custom_call_prologue %} | 86 {% if method.is_custom_call_prologue %} |
| 84 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); | 87 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); |
| 85 {% endif %} | 88 {% endif %} |
| 86 {% if method.is_custom_call_epilogue %} | 89 {% if method.is_custom_call_epilogue %} |
| 87 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); | 90 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); |
| 88 {% endif %} | 91 {% endif %} |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 template <> | 188 template <> |
| 186 struct V8TypeOf<{{cpp_class}}> { | 189 struct V8TypeOf<{{cpp_class}}> { |
| 187 typedef {{v8_class}} Type; | 190 typedef {{v8_class}} Type; |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 } // namespace blink | 193 } // namespace blink |
| 191 | 194 |
| 192 #endif // {{v8_class}}_h | 195 #endif // {{v8_class}}_h |
| 193 | 196 |
| 194 {% endfilter %}{# format_blink_cpp_source_code #} | 197 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |