| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 {% if is_partial %} | 276 {% if is_partial %} |
| 277 {{v8_class}}::install{{v8_class}}Template(isolate, world, interfaceTemplate)
; | 277 {{v8_class}}::install{{v8_class}}Template(isolate, world, interfaceTemplate)
; |
| 278 {% else %} | 278 {% else %} |
| 279 {% set parent_interface_template = | 279 {% set parent_interface_template = |
| 280 '%s::domTemplateForNamedPropertiesObject(isolate, world)' % v8_class | 280 '%s::domTemplateForNamedPropertiesObject(isolate, world)' % v8_class |
| 281 if has_named_properties_object else | 281 if has_named_properties_object else |
| 282 'V8%s::domTemplate(isolate, world)' % parent_interface | 282 'V8%s::domTemplate(isolate, world)' % parent_interface |
| 283 if parent_interface else | 283 if parent_interface else |
| 284 'v8::Local<v8::FunctionTemplate>()' %} | 284 'v8::Local<v8::FunctionTemplate>()' %} |
| 285 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat
e, {{v8_class}}::wrapperTypeInfo.interfaceName, {{parent_interface_template}}, {
{v8_class}}::internalFieldCount); | 285 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat
e, {{v8_class}}::wrapperTypeInfo.interfaceName, {{parent_interface_template}}, {
{v8_class}}::internalFieldCount); |
| 286 {% if constructors or has_custom_constructor or has_event_constructor %} | 286 {% if constructors or has_custom_constructor or has_event_constructor or has
_html_constructor %} |
| 287 interfaceTemplate->SetCallHandler({{v8_class}}::constructorCallback); | 287 interfaceTemplate->SetCallHandler({{v8_class}}::constructorCallback); |
| 288 interfaceTemplate->SetLength({{interface_length}}); | 288 interfaceTemplate->SetLength({{interface_length}}); |
| 289 {% endif %} | 289 {% endif %} |
| 290 {% endif %}{# is_partial #} | 290 {% endif %}{# is_partial #} |
| 291 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 291 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 292 ALLOW_UNUSED_LOCAL(signature); | 292 ALLOW_UNUSED_LOCAL(signature); |
| 293 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); | 293 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance
Template(); |
| 294 ALLOW_UNUSED_LOCAL(instanceTemplate); | 294 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 295 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); | 295 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy
peTemplate(); |
| 296 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 296 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 462 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 463 {{attribute_getter_implemented_in_private_script(attribute)}} | 463 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 464 {% if attribute.has_setter %} | 464 {% if attribute.has_setter %} |
| 465 {{attribute_setter_implemented_in_private_script(attribute)}} | 465 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 466 {% endif %} | 466 {% endif %} |
| 467 {% endfor %} | 467 {% endfor %} |
| 468 {% block partial_interface %}{% endblock %} | 468 {% block partial_interface %}{% endblock %} |
| 469 } // namespace blink | 469 } // namespace blink |
| 470 | 470 |
| 471 {% endfilter %}{# format_blink_cpp_source_code #} | 471 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |