OLD | NEW |
1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
2 | 2 |
3 {% set has_prepare_prototype_and_interface_object = | 3 {% set has_prepare_prototype_and_interface_object = |
4 unscopeables or has_conditional_attributes_on_prototype or | 4 unscopeables or has_conditional_attributes_on_prototype or |
5 methods | conditionally_exposed(is_partial) %} | 5 methods | conditionally_exposed(is_partial) %} |
6 {% set prepare_prototype_and_interface_object_func = | 6 {% set prepare_prototype_and_interface_object_func = |
7 '%s::preparePrototypeAndInterfaceObject' % v8_class | 7 '%s::preparePrototypeAndInterfaceObject' % v8_class |
8 if has_prepare_prototype_and_interface_object | 8 if has_prepare_prototype_and_interface_object |
9 else 'nullptr' %} | 9 else 'nullptr' %} |
10 | 10 |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 {% endblock %} | 723 {% endblock %} |
724 | 724 |
725 | 725 |
726 {##############################################################################} | 726 {##############################################################################} |
727 {% block get_dom_template_for_named_properties_object %} | 727 {% block get_dom_template_for_named_properties_object %} |
728 {% if has_named_properties_object %} | 728 {% if has_named_properties_object %} |
729 v8::Local<v8::FunctionTemplate> {{v8_class}}::domTemplateForNamedPropertiesObjec
t(v8::Isolate* isolate, const DOMWrapperWorld& world) | 729 v8::Local<v8::FunctionTemplate> {{v8_class}}::domTemplateForNamedPropertiesObjec
t(v8::Isolate* isolate, const DOMWrapperWorld& world) |
730 { | 730 { |
731 v8::Local<v8::FunctionTemplate> parentTemplate = V8{{parent_interface}}::dom
Template(isolate, world); | 731 v8::Local<v8::FunctionTemplate> parentTemplate = V8{{parent_interface}}::dom
Template(isolate, world); |
732 | 732 |
733 v8::Local<v8::FunctionTemplate> namedPropertiesObjectFunctionTemplate = v8::
FunctionTemplate::New(isolate); | 733 v8::Local<v8::FunctionTemplate> namedPropertiesObjectFunctionTemplate = v8::
FunctionTemplate::New(isolate, V8ObjectConstructor::isValidConstructorMode); |
734 namedPropertiesObjectFunctionTemplate->SetClassName(v8AtomicString(isolate,
"{{interface_name}}Properties")); | 734 namedPropertiesObjectFunctionTemplate->SetClassName(v8AtomicString(isolate,
"{{interface_name}}Properties")); |
735 namedPropertiesObjectFunctionTemplate->Inherit(parentTemplate); | 735 namedPropertiesObjectFunctionTemplate->Inherit(parentTemplate); |
736 | 736 |
737 v8::Local<v8::ObjectTemplate> namedPropertiesObjectTemplate = namedPropertie
sObjectFunctionTemplate->PrototypeTemplate(); | 737 v8::Local<v8::ObjectTemplate> namedPropertiesObjectTemplate = namedPropertie
sObjectFunctionTemplate->PrototypeTemplate(); |
738 namedPropertiesObjectTemplate->SetInternalFieldCount({{v8_class}}::internalF
ieldCount); | 738 namedPropertiesObjectTemplate->SetInternalFieldCount({{v8_class}}::internalF
ieldCount); |
739 V8DOMConfiguration::setClassString(isolate, namedPropertiesObjectTemplate, "
{{interface_name}}Properties"); | 739 V8DOMConfiguration::setClassString(isolate, namedPropertiesObjectTemplate, "
{{interface_name}}Properties"); |
740 {{install_named_property_handler('namedPropertiesObjectTemplate') | indent}} | 740 {{install_named_property_handler('namedPropertiesObjectTemplate') | indent}} |
741 | 741 |
742 return namedPropertiesObjectFunctionTemplate; | 742 return namedPropertiesObjectFunctionTemplate; |
743 } | 743 } |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 | 934 |
935 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 935 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
936 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 936 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
937 { | 937 { |
938 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 938 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
939 } | 939 } |
940 | 940 |
941 {% endfor %} | 941 {% endfor %} |
942 {% endif %} | 942 {% endif %} |
943 {% endblock %} | 943 {% endblock %} |
OLD | NEW |