OLD | NEW |
1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
2 | 2 |
3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
4 #include "{{v8_class_or_partial}}.h" | 4 #include "{{v8_class_or_partial}}.h" |
5 | 5 |
6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} | 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} |
7 #include "{{filename}}" | 7 #include "{{filename}}" |
8 {% endfor %} | 8 {% endfor %} |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 {% block to_impl_with_type_check %}{% endblock %} | 707 {% block to_impl_with_type_check %}{% endblock %} |
708 {##############################################################################} | 708 {##############################################################################} |
709 {% block prepare_prototype_and_interface_object %} | 709 {% block prepare_prototype_and_interface_object %} |
710 {% from 'attributes.cpp.tmpl' import install_conditionally_enabled_attributes_on
_prototype with context %} | 710 {% from 'attributes.cpp.tmpl' import install_conditionally_enabled_attributes_on
_prototype with context %} |
711 {% from 'methods.cpp.tmpl' import install_conditionally_enabled_methods with con
text %} | 711 {% from 'methods.cpp.tmpl' import install_conditionally_enabled_methods with con
text %} |
712 {% if has_prepare_prototype_and_interface_object %} | 712 {% if has_prepare_prototype_and_interface_object %} |
713 void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C
ontext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeOb
ject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> i
nterfaceTemplate) { | 713 void {{v8_class_or_partial}}::preparePrototypeAndInterfaceObject(v8::Local<v8::C
ontext> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeOb
ject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> i
nterfaceTemplate) { |
714 {% if is_partial %} | 714 {% if is_partial %} |
715 {{v8_class}}::preparePrototypeAndInterfaceObject(context, world, prototypeObje
ct, interfaceObject, interfaceTemplate); | 715 {{v8_class}}::preparePrototypeAndInterfaceObject(context, world, prototypeObje
ct, interfaceObject, interfaceTemplate); |
716 {% endif %} | 716 {% endif %} |
| 717 |
717 v8::Isolate* isolate = context->GetIsolate(); | 718 v8::Isolate* isolate = context->GetIsolate(); |
| 719 {% if has_conditional_attributes_on_prototype or methods | conditionally_expos
ed(is_partial) %} |
| 720 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 721 ExecutionContext* executionContext = toExecutionContext(context); |
| 722 DCHECK(executionContext); |
| 723 {% endif %} |
718 | 724 |
719 {% if unscopables %} | 725 {% if unscopables %} |
720 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); | 726 v8::Local<v8::Name> unscopablesSymbol(v8::Symbol::GetUnscopables(isolate)); |
721 v8::Local<v8::Object> unscopables; | 727 v8::Local<v8::Object> unscopables; |
722 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) | 728 if (v8CallBoolean(prototypeObject->HasOwnProperty(context, unscopablesSymbol))
) |
723 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); | 729 unscopables = prototypeObject->Get(context, unscopablesSymbol).ToLocalChecke
d().As<v8::Object>(); |
724 else | 730 else |
725 unscopables = v8::Object::New(isolate); | 731 unscopables = v8::Object::New(isolate); |
726 {% for name, runtime_enabled_feature_name in unscopables %} | 732 {% for name, runtime_enabled_feature_name in unscopables %} |
727 {% filter runtime_enabled(runtime_enabled_feature_name) %} | 733 {% filter runtime_enabled(runtime_enabled_feature_name) %} |
(...skipping 10 matching lines...) Expand all Loading... |
738 {% endif %} | 744 {% endif %} |
739 } | 745 } |
740 {% endif %} | 746 {% endif %} |
741 | 747 |
742 {% endblock %} | 748 {% endblock %} |
743 {##############################################################################} | 749 {##############################################################################} |
744 {% block partial_interface %}{% endblock %} | 750 {% block partial_interface %}{% endblock %} |
745 } // namespace blink | 751 } // namespace blink |
746 | 752 |
747 {% endfilter %}{# format_blink_cpp_source_code #} | 753 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |