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 {% filter conditional(conditional_string) %} | 5 {% filter conditional(conditional_string) %} |
6 {% for filename in header_includes %} | 6 {% for filename in header_includes %} |
7 #include "{{filename}}" | 7 #include "{{filename}}" |
8 {% endfor %} | 8 {% endfor %} |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 {% endif %} | 75 {% endif %} |
76 {% if interface_name == 'Window' %} | 76 {% if interface_name == 'Window' %} |
77 static v8::Local<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); | 77 static v8::Local<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); |
78 {% endif %} | 78 {% endif %} |
79 {% for method in methods %} | 79 {% for method in methods %} |
80 {% if method.is_custom %} | 80 {% if method.is_custom %} |
81 {% filter conditional(method.conditional_string) %} | 81 {% filter conditional(method.conditional_string) %} |
82 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); | 82 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V
alue>&); |
83 {% endfilter %} | 83 {% endfilter %} |
84 {% endif %} | 84 {% endif %} |
| 85 {% if method.is_custom_call_prologue %} |
| 86 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); |
| 87 {% endif %} |
85 {% if method.is_custom_call_epilogue %} | 88 {% if method.is_custom_call_epilogue %} |
86 {% filter conditional(method.conditional_string) %} | |
87 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); | 89 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn
fo<v8::Value>&, {{cpp_class}}*); |
88 {% endfilter %} | |
89 {% endif %} | 90 {% endif %} |
90 {% endfor %} | 91 {% endfor %} |
91 {% if constructors or has_custom_constructor or has_event_constructor %} | 92 {% if constructors or has_custom_constructor or has_event_constructor %} |
92 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 93 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
93 {% endif %} | 94 {% endif %} |
94 {% if has_custom_constructor %} | 95 {% if has_custom_constructor %} |
95 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); | 96 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); |
96 {% endif %} | 97 {% endif %} |
97 {% for attribute in attributes %} | 98 {% for attribute in attributes %} |
98 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} | 99 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_
by #} |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 {% endif %} | 190 {% endif %} |
190 template <> | 191 template <> |
191 struct V8TypeOf<{{cpp_class}}> { | 192 struct V8TypeOf<{{cpp_class}}> { |
192 typedef {{v8_class}} Type; | 193 typedef {{v8_class}} Type; |
193 }; | 194 }; |
194 | 195 |
195 } // namespace blink | 196 } // namespace blink |
196 {% endfilter %} | 197 {% endfilter %} |
197 | 198 |
198 #endif // {{v8_class}}_h | 199 #endif // {{v8_class}}_h |
OLD | NEW |