| OLD | NEW |
| 1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
| 2 | 2 |
| 3 | 3 |
| 4 {##############################################################################} | 4 {##############################################################################} |
| 5 {% block indexed_property_getter %} | 5 {% block indexed_property_getter %} |
| 6 {% if indexed_property_getter and not indexed_property_getter.is_custom %} | 6 {% if indexed_property_getter and not indexed_property_getter.is_custom %} |
| 7 {% set getter = indexed_property_getter %} | 7 {% set getter = indexed_property_getter %} |
| 8 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 8 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 9 { | 9 { |
| 10 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); | 10 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); |
| (...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 | 899 |
| 900 {##############################################################################} | 900 {##############################################################################} |
| 901 {% block install_conditional_attributes %} | 901 {% block install_conditional_attributes %} |
| 902 {% from 'attributes.cpp' import attribute_configuration with context %} | 902 {% from 'attributes.cpp' import attribute_configuration with context %} |
| 903 {% if has_conditional_attributes %} | 903 {% if has_conditional_attributes %} |
| 904 void {{v8_class}}::installConditionallyEnabledProperties(v8::Local<v8::Object> i
nstanceObject, v8::Isolate* isolate) | 904 void {{v8_class}}::installConditionallyEnabledProperties(v8::Local<v8::Object> i
nstanceObject, v8::Isolate* isolate) |
| 905 { | 905 { |
| 906 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | 906 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); |
| 907 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 907 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 908 | 908 |
| 909 {% for attribute in attributes if attribute.per_context_enabled_function or
attribute.exposed_test %} | 909 {% for attribute in attributes if attribute.exposed_test %} |
| 910 {% filter per_context_enabled(attribute.per_context_enabled_function) %} | |
| 911 {% filter exposed(attribute.exposed_test) %} | 910 {% filter exposed(attribute.exposed_test) %} |
| 912 {% if attribute.is_expose_js_accessors %} | 911 {% if attribute.is_expose_js_accessors %} |
| 913 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration
= {{attribute_configuration(attribute)}}; | 912 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration
= {{attribute_configuration(attribute)}}; |
| 914 V8DOMConfiguration::installAccessor(isolate, prototypeObject, accessorConfig
uration); | 913 V8DOMConfiguration::installAccessor(isolate, prototypeObject, accessorConfig
uration); |
| 915 {% else %} | 914 {% else %} |
| 916 static const V8DOMConfiguration::AttributeConfiguration attributeConfigurati
on = {{attribute_configuration(attribute)}}; | 915 static const V8DOMConfiguration::AttributeConfiguration attributeConfigurati
on = {{attribute_configuration(attribute)}}; |
| 917 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeObjec
t, attributeConfiguration); | 916 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeObjec
t, attributeConfiguration); |
| 918 {% endif %} | 917 {% endif %} |
| 919 {% endfilter %} | 918 {% endfilter %} |
| 920 {% endfilter %} | |
| 921 {% endfor %} | 919 {% endfor %} |
| 922 } | 920 } |
| 923 | 921 |
| 924 {% endif %} | 922 {% endif %} |
| 925 {% endblock %} | 923 {% endblock %} |
| 926 | 924 |
| 927 | 925 |
| 928 {##############################################################################} | 926 {##############################################################################} |
| 929 {% block prepare_prototype_object %} | 927 {% block prepare_prototype_object %} |
| 930 {% from 'methods.cpp' import install_conditionally_enabled_methods with context
%} | 928 {% from 'methods.cpp' import install_conditionally_enabled_methods with context
%} |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 } | 1040 } |
| 1043 | 1041 |
| 1044 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 1042 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
| 1045 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 1043 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 1046 { | 1044 { |
| 1047 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 1045 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
| 1048 } | 1046 } |
| 1049 {% endfor %} | 1047 {% endfor %} |
| 1050 {% endif %} | 1048 {% endif %} |
| 1051 {% endblock %} | 1049 {% endblock %} |
| OLD | NEW |