| OLD | NEW |
| 1 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable, v8_value_t
o_local_cpp_value %} | 1 {% from 'utilities.cpp.tmpl' import declare_enum_validation_variable, v8_value_t
o_local_cpp_value %} |
| 2 | 2 |
| 3 {##############################################################################} | 3 {##############################################################################} |
| 4 {% macro attribute_getter(attribute, world_suffix) %} | 4 {% macro attribute_getter(attribute, world_suffix) %} |
| 5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( | 5 static void {{attribute.name}}AttributeGetter{{world_suffix}}( |
| 6 {%- if attribute.is_data_type_property %} | 6 {%- if attribute.is_data_type_property %} |
| 7 const v8::PropertyCallbackInfo<v8::Value>& info | 7 const v8::PropertyCallbackInfo<v8::Value>& info |
| 8 {%- else %} | 8 {%- else %} |
| 9 const v8::FunctionCallbackInfo<v8::Value>& info | 9 const v8::FunctionCallbackInfo<v8::Value>& info |
| 10 {%- endif %}) { | 10 {%- endif %}) { |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 | 565 |
| 566 | 566 |
| 567 {##############################################################################} | 567 {##############################################################################} |
| 568 {% macro accessor_configuration(attribute) %} | 568 {% macro accessor_configuration(attribute) %} |
| 569 {{build_attribute_or_accessor_configuration(attribute, 'accessor')}} | 569 {{build_attribute_or_accessor_configuration(attribute, 'accessor')}} |
| 570 {% endmacro %} | 570 {% endmacro %} |
| 571 | 571 |
| 572 | 572 |
| 573 {##############################################################################} | 573 {##############################################################################} |
| 574 {% macro install_conditionally_enabled_attributes_on_prototype() %} | 574 {% macro install_conditionally_enabled_attributes_on_prototype() %} |
| 575 {% for attribute in attributes if (attribute.exposed_test or attribute.secure_co
ntext_test) and attribute.on_prototype %} | 575 {% for attribute in conditionally_enabled_attributes if attribute.on_prototype %
} |
| 576 {% filter exposed(attribute.exposed_test) %} | 576 {% filter exposed(attribute.exposed_test) %} |
| 577 {% filter secure_context(attribute.secure_context_test) %} | 577 {% filter secure_context(attribute.secure_context_test) %} |
| 578 {% filter runtime_enabled(attribute.runtime_enabled_feature_name) %} | 578 {% filter runtime_enabled(attribute.runtime_enabled_feature_name) %} |
| 579 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration[] =
{ | 579 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration[] =
{ |
| 580 {{accessor_configuration(attribute)}} | 580 {{accessor_configuration(attribute)}} |
| 581 }; | 581 }; |
| 582 for (const auto& accessorConfig : accessorConfiguration) | 582 for (const auto& accessorConfig : accessorConfiguration) |
| 583 V8DOMConfiguration::InstallAccessor(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, accessorConfig); | 583 V8DOMConfiguration::InstallAccessor(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, accessorConfig); |
| 584 {% endfilter %}{# runtime_enabled #} | 584 {% endfilter %}{# runtime_enabled #} |
| 585 {% endfilter %}{# secure_context #} | 585 {% endfilter %}{# secure_context #} |
| 586 {% endfilter %}{# exposed #} | 586 {% endfilter %}{# exposed #} |
| 587 {% endfor %} | 587 {% endfor %} |
| 588 {% endmacro %} | 588 {% endmacro %} |
| OLD | NEW |