| 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 to_active_dom_object %} | 927 {% block to_active_dom_object %} |
| 930 {% if is_active_dom_object %} | 928 {% if is_active_dom_object %} |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1008 } | 1006 } |
| 1009 | 1007 |
| 1010 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 1008 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
| 1011 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 1009 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 1012 { | 1010 { |
| 1013 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 1011 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
| 1014 } | 1012 } |
| 1015 {% endfor %} | 1013 {% endfor %} |
| 1016 {% endif %} | 1014 {% endif %} |
| 1017 {% endblock %} | 1015 {% endblock %} |
| OLD | NEW |