| 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 896 |
| 897 | 897 |
| 898 {##############################################################################} | 898 {##############################################################################} |
| 899 {% macro install_unscopeables() %} | 899 {% macro install_unscopeables() %} |
| 900 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 900 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
| 901 v8::Local<v8::Object> unscopeables; | 901 v8::Local<v8::Object> unscopeables; |
| 902 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))) | 902 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))) |
| 903 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalCheck
ed().As<v8::Object>(); | 903 unscopeables = prototypeObject->Get(context, unscopablesSymbol).ToLocalCheck
ed().As<v8::Object>(); |
| 904 else | 904 else |
| 905 unscopeables = v8::Object::New(isolate); | 905 unscopeables = v8::Object::New(isolate); |
| 906 {% for name, runtime_enabled_function in unscopeables %} | 906 {% for name, runtime_enabled_function, api_experiment_name in unscopeables %} |
| 907 {% filter runtime_enabled(runtime_enabled_function) %} | 907 {% filter runtime_enabled(runtime_enabled_function) %} |
| 908 {% filter api_experiment_enabled(api_experiment_name) %} |
| 908 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "{{name}}"), v
8::True(isolate)).FromJust(); | 909 unscopeables->CreateDataProperty(context, v8AtomicString(isolate, "{{name}}"), v
8::True(isolate)).FromJust(); |
| 909 {% endfilter %} | 910 {% endfilter %} |
| 911 {% endfilter %} |
| 910 {% endfor %} | 912 {% endfor %} |
| 911 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopeables).Fr
omJust(); | 913 prototypeObject->CreateDataProperty(context, unscopablesSymbol, unscopeables).Fr
omJust(); |
| 912 {% endmacro %} | 914 {% endmacro %} |
| 913 | 915 |
| 914 | 916 |
| 915 {##############################################################################} | 917 {##############################################################################} |
| 916 {% macro install_conditionally_enabled_attributes_on_prototype() %} | 918 {% macro install_conditionally_enabled_attributes_on_prototype() %} |
| 917 {% from 'attributes.cpp' import attribute_configuration with context %} | 919 {% from 'attributes.cpp' import attribute_configuration with context %} |
| 918 ExecutionContext* executionContext = toExecutionContext(context); | 920 ExecutionContext* executionContext = toExecutionContext(context); |
| 919 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTempla
te); | 921 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTempla
te); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 | 980 |
| 979 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 981 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
| 980 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 982 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 981 { | 983 { |
| 982 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 984 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
| 983 } | 985 } |
| 984 | 986 |
| 985 {% endfor %} | 987 {% endfor %} |
| 986 {% endif %} | 988 {% endif %} |
| 987 {% endblock %} | 989 {% endblock %} |
| OLD | NEW |