| OLD | NEW |
| 1 {% extends 'interface_base.cpp.tmpl' %} | 1 {% extends 'interface_base.cpp.tmpl' %} |
| 2 | 2 |
| 3 {% set has_prepare_prototype_and_interface_object = | 3 {% set has_prepare_prototype_and_interface_object = |
| 4 unscopables or has_conditional_attributes_on_prototype or | 4 unscopables 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 not named_property_getter.is_custom_property_enumerator %} | 457 not named_property_getter.is_custom_property_enumerator %} |
| 458 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
nfo) { | 458 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
nfo) { |
| 459 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::EnumerationCo
ntext, "{{interface_name}}"); | 459 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::EnumerationCo
ntext, "{{interface_name}}"); |
| 460 | 460 |
| 461 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); | 461 {{cpp_class}}* impl = {{v8_class}}::toImpl(info.Holder()); |
| 462 | 462 |
| 463 Vector<String> names; | 463 Vector<String> names; |
| 464 impl->namedPropertyEnumerator(names, exceptionState); | 464 impl->namedPropertyEnumerator(names, exceptionState); |
| 465 if (exceptionState.hadException()) | 465 if (exceptionState.hadException()) |
| 466 return; | 466 return; |
| 467 v8SetReturnValue(info, toV8(names, info.Holder(), info.GetIsolate()).As<v8::Ar
ray>()); | 467 v8SetReturnValue(info, ToV8(names, info.Holder(), info.GetIsolate()).As<v8::Ar
ray>()); |
| 468 } | 468 } |
| 469 | 469 |
| 470 {% endif %} | 470 {% endif %} |
| 471 {% endblock %} | 471 {% endblock %} |
| 472 | 472 |
| 473 | 473 |
| 474 {##############################################################################} | 474 {##############################################################################} |
| 475 {% block named_property_enumerator_callback %} | 475 {% block named_property_enumerator_callback %} |
| 476 {% if named_property_getter and named_property_getter.is_enumerable %} | 476 {% if named_property_getter and named_property_getter.is_enumerable %} |
| 477 {% set getter = named_property_getter %} | 477 {% set getter = named_property_getter %} |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 } | 956 } |
| 957 | 957 |
| 958 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 958 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
| 959 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 959 void {{v8_class}}::register{{method.name | blink_capitalize}}MethodForPartialInt
erface(void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
| 960 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; | 960 {{cpp_class}}V8Internal::{{method.name}}MethodForPartialInterface = method; |
| 961 } | 961 } |
| 962 | 962 |
| 963 {% endfor %} | 963 {% endfor %} |
| 964 {% endif %} | 964 {% endif %} |
| 965 {% endblock %} | 965 {% endblock %} |
| OLD | NEW |