| OLD | NEW |
| 1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
| 2 | 2 |
| 3 | 3 |
| 4 {##############################################################################} | 4 {##############################################################################} |
| 5 {% block prepare_prototype_and_interface_object %} | 5 {% block prepare_prototype_and_interface_object %} |
| 6 {% from 'interface.cpp' import install_unscopeables with context %} | 6 {% from 'interface.cpp' import install_unscopeables with context %} |
| 7 {% from 'interface.cpp' import install_conditionally_enabled_attributes_on_proto
type with context %} | 7 {% from 'interface.cpp' import install_conditionally_enabled_attributes_on_proto
type with context %} |
| 8 {% from 'methods.cpp' import install_conditionally_enabled_methods | 8 {% from 'methods.cpp' import install_conditionally_enabled_methods |
| 9 with context %} | 9 with context %} |
| 10 void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C
ontext> context, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function>
interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) | 10 void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C
ontext> context, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function>
interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 {% endif %} | 26 {% endif %} |
| 27 } | 27 } |
| 28 | 28 |
| 29 {% endblock %} | 29 {% endblock %} |
| 30 | 30 |
| 31 | 31 |
| 32 {##############################################################################} | 32 {##############################################################################} |
| 33 {% block partial_interface %} | 33 {% block partial_interface %} |
| 34 void {{v8_class_or_partial}}::initialize() | 34 void {{v8_class_or_partial}}::initialize() |
| 35 { | 35 { |
| 36 // Should be invoked from initModules. | 36 // Should be invoked from ModulesInitializer. |
| 37 {{v8_class}}::updateWrapperTypeInfo( | 37 {{v8_class}}::updateWrapperTypeInfo( |
| 38 &{{v8_class_or_partial}}::install{{v8_class}}Template, | 38 &{{v8_class_or_partial}}::install{{v8_class}}Template, |
| 39 &{{v8_class_or_partial}}::preparePrototypeAndInterfaceObject); | 39 &{{v8_class_or_partial}}::preparePrototypeAndInterfaceObject); |
| 40 {% for method in methods %} | 40 {% for method in methods %} |
| 41 {% if method.overloads and method.overloads.has_partial_overloads %} | 41 {% if method.overloads and method.overloads.has_partial_overloads %} |
| 42 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInte
rface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method); | 42 {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInte
rface(&{{cpp_class_or_partial}}V8Internal::{{method.name}}Method); |
| 43 {% endif %} | 43 {% endif %} |
| 44 {% endfor %} | 44 {% endfor %} |
| 45 } | 45 } |
| 46 | 46 |
| 47 {% endblock %} | 47 {% endblock %} |
| OLD | NEW |