| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 {% if method.is_custom %} | 83 {% if method.is_custom %} |
| 84 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 84 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
| 85 {% endif %} | 85 {% endif %} |
| 86 {% if method.is_custom_call_prologue %} | 86 {% if method.is_custom_call_prologue %} |
| 87 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}}*); |
| 88 {% endif %} | 88 {% endif %} |
| 89 {% if method.is_custom_call_epilogue %} | 89 {% if method.is_custom_call_epilogue %} |
| 90 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}}*); |
| 91 {% endif %} | 91 {% endif %} |
| 92 {% endfor %} | 92 {% endfor %} |
| 93 {% if constructors or has_custom_constructor or has_event_constructor %} | 93 {% if constructors or has_custom_constructor or has_event_constructor or has
_html_constructor %} |
| 94 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 94 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 95 {% endif %} | 95 {% endif %} |
| 96 {% if has_custom_constructor %} | 96 {% if has_custom_constructor %} |
| 97 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); | 97 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
| 98 {% elif has_html_constructor %} |
| 99 static void create(const v8::FunctionCallbackInfo<v8::Value>&); |
| 98 {% endif %} | 100 {% endif %} |
| 99 {% for attribute in attributes %} | 101 {% for attribute in attributes %} |
| 100 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 102 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
| 101 {% if attribute.is_data_type_property %} | 103 {% if attribute.is_data_type_property %} |
| 102 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); | 104 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba
ckInfo<v8::Value>&); |
| 103 {% else %} | 105 {% else %} |
| 104 static void {{attribute.name}}AttributeGetterCustom(const v8::FunctionCallba
ckInfo<v8::Value>&); | 106 static void {{attribute.name}}AttributeGetterCustom(const v8::FunctionCallba
ckInfo<v8::Value>&); |
| 105 {% endif %} | 107 {% endif %} |
| 106 {% endif %} | 108 {% endif %} |
| 107 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} | 109 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_
by #} |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 template <> | 191 template <> |
| 190 struct V8TypeOf<{{cpp_class}}> { | 192 struct V8TypeOf<{{cpp_class}}> { |
| 191 typedef {{v8_class}} Type; | 193 typedef {{v8_class}} Type; |
| 192 }; | 194 }; |
| 193 | 195 |
| 194 } // namespace blink | 196 } // namespace blink |
| 195 | 197 |
| 196 #endif // {{v8_class}}_h | 198 #endif // {{v8_class}}_h |
| 197 | 199 |
| 198 {% endfilter %}{# format_blink_cpp_source_code #} | 200 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |