Chromium Code Reviews| 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 {% filter conditional(method.conditional_string) %} | |
|
haraken
2015/07/10 09:32:20
conditional is deprecated (I think it's used only
philipj_slow
2015/07/10 09:41:27
Should I remove it for the call epilogue as well?
haraken
2015/07/10 09:50:52
Sounds nicer :)
philipj_slow
2015/07/10 11:10:57
Done.
| |
| 87 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); | |
| 88 {% endfilter %} | |
| 89 {% endif %} | |
| 85 {% if method.is_custom_call_epilogue %} | 90 {% if method.is_custom_call_epilogue %} |
| 86 {% filter conditional(method.conditional_string) %} | 91 {% filter conditional(method.conditional_string) %} |
| 87 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); | 92 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); |
| 88 {% endfilter %} | 93 {% endfilter %} |
| 89 {% endif %} | 94 {% endif %} |
| 90 {% endfor %} | 95 {% endfor %} |
| 91 {% if constructors or has_custom_constructor or has_event_constructor %} | 96 {% if constructors or has_custom_constructor or has_event_constructor %} |
| 92 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 97 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 93 {% endif %} | 98 {% endif %} |
| 94 {% if has_custom_constructor %} | 99 {% if has_custom_constructor %} |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 {% endif %} | 194 {% endif %} |
| 190 template <> | 195 template <> |
| 191 struct V8TypeOf<{{cpp_class}}> { | 196 struct V8TypeOf<{{cpp_class}}> { |
| 192 typedef {{v8_class}} Type; | 197 typedef {{v8_class}} Type; |
| 193 }; | 198 }; |
| 194 | 199 |
| 195 } // namespace blink | 200 } // namespace blink |
| 196 {% endfilter %} | 201 {% endfilter %} |
| 197 | 202 |
| 198 #endif // {{v8_class}}_h | 203 #endif // {{v8_class}}_h |
| OLD | NEW |