OLD | NEW |
---|---|
1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
2 | 2 |
3 | |
4 {##############################################################################} | |
5 {% block prepare_prototype_object %} | |
6 {% from 'interface.cpp' import install_unscopeables with context %} | |
7 {% from 'methods.cpp' import install_conditionally_enabled_methods | |
haraken
2015/04/22 10:54:51
install_conditionally_enabled_methods => prepare_p
| |
8 with context %} | |
9 void {{v8_class_or_partial}}::preparePrototypeObject(v8::Isolate* isolate, v8::L ocal<v8::Object> prototypeObject) | |
10 { | |
11 {{v8_class}}::preparePrototypeObject(isolate, prototypeObject); | |
12 {% if unscopeables %} | |
13 {{install_unscopeables() | indent}} | |
14 {% endif %} | |
15 {% if conditionally_enabled_methods %} | |
16 {{install_conditionally_enabled_methods() | indent}} | |
17 {% endif %} | |
18 } | |
19 | |
20 {% endblock %} | |
21 | |
22 | |
3 {##############################################################################} | 23 {##############################################################################} |
4 {% block partial_interface %} | 24 {% block partial_interface %} |
5 void {{v8_class_or_partial}}::initialize() | 25 void {{v8_class_or_partial}}::initialize() |
6 { | 26 { |
7 // Should be invoked from initModules. | 27 // Should be invoked from initModules. |
8 {{v8_class}}::updateWrapperTypeInfo( | 28 {{v8_class}}::updateWrapperTypeInfo( |
9 &{{v8_class_or_partial}}::install{{v8_class}}Template, | 29 &{{v8_class_or_partial}}::install{{v8_class}}Template, |
10 &{{v8_class_or_partial}}::installConditionallyEnabledMethods); | 30 &{{v8_class_or_partial}}::preparePrototypeObject); |
11 {% for method in methods %} | 31 {% for method in methods %} |
12 {% if method.overloads and method.overloads.has_partial_overloads %} | 32 {% if method.overloads and method.overloads.has_partial_overloads %} |
13 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInte rface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method); | 33 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInte rface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method); |
14 {% endif %} | 34 {% endif %} |
15 {% endfor %} | 35 {% endfor %} |
16 } | 36 } |
17 | 37 |
18 {% endblock %} | 38 {% endblock %} |
OLD | NEW |