Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl

Issue 2558383003: [Refactoring] Remove newline hacks from V8 binding template (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 {% if not is_array_buffer_or_view %} 384 {% if not is_array_buffer_or_view %}
385 {% from 'methods.cpp.tmpl' import install_custom_signature with context %} 385 {% from 'methods.cpp.tmpl' import install_custom_signature with context %}
386 {% from 'attributes.cpp.tmpl' import attribute_configuration with context %} 386 {% from 'attributes.cpp.tmpl' import attribute_configuration with context %}
387 {% from 'constants.cpp.tmpl' import install_constants with context %} 387 {% from 'constants.cpp.tmpl' import install_constants with context %}
388 {% from 'methods.cpp.tmpl' import method_configuration with context %} 388 {% from 'methods.cpp.tmpl' import method_configuration with context %}
389 {% if has_partial_interface or is_partial %} 389 {% if has_partial_interface or is_partial %}
390 void {{v8_class_or_partial}}::install{{v8_class}}Template(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 390 void {{v8_class_or_partial}}::install{{v8_class}}Template(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
391 {% else %} 391 {% else %}
392 static void install{{v8_class}}Template(v8::Isolate* isolate, const DOMWrapperWo rld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 392 static void install{{v8_class}}Template(v8::Isolate* isolate, const DOMWrapperWo rld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
393 {% endif %} 393 {% endif %}
394 {% set newline = '' %}
395 // Initialize the interface object's template. 394 // Initialize the interface object's template.
396 {% if is_partial %} 395 {% if is_partial %}
397 {{v8_class}}::install{{v8_class}}Template(isolate, world, interfaceTemplate); 396 {{v8_class}}::install{{v8_class}}Template(isolate, world, interfaceTemplate);
398 {% else %} 397 {% else %}
399 {% set parent_interface_template = 398 {% set parent_interface_template =
400 '%s::domTemplateForNamedPropertiesObject(isolate, world)' % v8_class 399 '%s::domTemplateForNamedPropertiesObject(isolate, world)' % v8_class
401 if has_named_properties_object else 400 if has_named_properties_object else
402 'V8%s::domTemplate(isolate, world)' % parent_interface 401 'V8%s::domTemplate(isolate, world)' % parent_interface
403 if parent_interface else 402 if parent_interface else
404 'v8::Local<v8::FunctionTemplate>()' %} 403 'v8::Local<v8::FunctionTemplate>()' %}
405 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, {{v8_class}}::wrapperTypeInfo.interfaceName, {{parent_interface_template}}, {{v 8_class}}::internalFieldCount); 404 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, {{v8_class}}::wrapperTypeInfo.interfaceName, {{parent_interface_template}}, {{v 8_class}}::internalFieldCount);
406 {% if constructors or has_custom_constructor or has_event_constructor or has_h tml_constructor %} 405 {% if constructors or has_custom_constructor or has_event_constructor or has_h tml_constructor %}
407 interfaceTemplate->SetCallHandler({{v8_class}}::constructorCallback); 406 interfaceTemplate->SetCallHandler({{v8_class}}::constructorCallback);
408 interfaceTemplate->SetLength({{interface_length}}); 407 interfaceTemplate->SetLength({{interface_length}});
409 {% endif %} 408 {% endif %}
410 {% endif %}{# is_partial #} 409 {% endif %}{# is_partial #}
411 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 410 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
412 ALLOW_UNUSED_LOCAL(signature); 411 ALLOW_UNUSED_LOCAL(signature);
413 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 412 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
414 ALLOW_UNUSED_LOCAL(instanceTemplate); 413 ALLOW_UNUSED_LOCAL(instanceTemplate);
415 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 414 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
416 ALLOW_UNUSED_LOCAL(prototypeTemplate); 415 ALLOW_UNUSED_LOCAL(prototypeTemplate);
417 416
418 {%- if interface_name == 'Window' and not is_partial %}{{newline}} 417 {% if interface_name == 'Window' and not is_partial %}
419 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); 418 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
420 {% endif %} 419 {% endif %}
421 {% if is_immutable_prototype %}{{newline}} 420
421 {% if is_immutable_prototype %}
422 // Global object prototype chain consists of Immutable Prototype Exotic Object s 422 // Global object prototype chain consists of Immutable Prototype Exotic Object s
423 prototypeTemplate->SetImmutableProto(); 423 prototypeTemplate->SetImmutableProto();
424 {% endif %} 424 {% endif %}
425 {% if is_global %}{{newline}} 425
426 {% if is_global %}
426 // Global objects are Immutable Prototype Exotic Objects 427 // Global objects are Immutable Prototype Exotic Objects
427 instanceTemplate->SetImmutableProto(); 428 instanceTemplate->SetImmutableProto();
428 {% endif %} 429 {% endif %}
429 430
430 // Register DOM constants, attributes and operations. 431 // Register DOM constants, attributes and operations.
431 {% filter runtime_enabled(runtime_enabled_function) %} 432 {% filter runtime_enabled(runtime_enabled_function) %}
432 {% if constants %} 433 {% if constants %}
433 {{install_constants() | indent(2)}} 434 {{install_constants() | indent(2)}}
434 {% endif %} 435 {% endif %}
435 {% if attributes | has_attribute_configuration %} 436 {% if attributes | has_attribute_configuration %}
436 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate, protot ypeTemplate, {{'%sAttributes' % v8_class}}, {{'WTF_ARRAY_LENGTH(%sAttributes)' % v8_class}}); 437 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate, protot ypeTemplate, {{'%sAttributes' % v8_class}}, {{'WTF_ARRAY_LENGTH(%sAttributes)' % v8_class}});
437 {% endif %} 438 {% endif %}
438 {% if attributes | has_lazy_data_attribute_configuration %} 439 {% if attributes | has_lazy_data_attribute_configuration %}
439 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemplate , prototypeTemplate, {{'%sLazyDataAttributes' % v8_class}}, {{'WTF_ARRAY_LENGTH( %sLazyDataAttributes)' % v8_class}}); 440 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemplate , prototypeTemplate, {{'%sLazyDataAttributes' % v8_class}}, {{'WTF_ARRAY_LENGTH( %sLazyDataAttributes)' % v8_class}});
440 {% endif %} 441 {% endif %}
441 {% if attributes | has_accessor_configuration %} 442 {% if attributes | has_accessor_configuration %}
442 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, {{'%sAccessors' % v8_class}}, {{'WTF_A RRAY_LENGTH(%sAccessors)' % v8_class}}); 443 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, {{'%sAccessors' % v8_class}}, {{'WTF_A RRAY_LENGTH(%sAccessors)' % v8_class}});
443 {% endif %} 444 {% endif %}
444 {% if methods | has_method_configuration(is_partial) %} 445 {% if methods | has_method_configuration(is_partial) %}
445 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, {{'%sMethods' % v8_class}}, {{'WTF_ARRAY _LENGTH(%sMethods)' % v8_class}}); 446 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, {{'%sMethods' % v8_class}}, {{'WTF_ARRAY _LENGTH(%sMethods)' % v8_class}});
446 {% endif %} 447 {% endif %}
447 {% endfilter %} 448 {% endfilter %}
448 {%- if has_access_check_callbacks and not is_partial %}{{newline}} 449
450 {% if has_access_check_callbacks and not is_partial %}
449 // Cross-origin access check 451 // Cross-origin access check
450 {% set cross_origin_named_getter = '%sV8Internal::crossOriginNamedGetter' % cp p_class if has_cross_origin_named_getter else 'nullptr' %} 452 {% set cross_origin_named_getter = '%sV8Internal::crossOriginNamedGetter' % cp p_class if has_cross_origin_named_getter else 'nullptr' %}
451 {% set cross_origin_named_setter = '%sV8Internal::crossOriginNamedSetter' % cp p_class if has_cross_origin_named_setter else 'nullptr' %} 453 {% set cross_origin_named_setter = '%sV8Internal::crossOriginNamedSetter' % cp p_class if has_cross_origin_named_setter else 'nullptr' %}
452 {% set cross_origin_named_enumerator = '%sV8Internal::crossOriginNamedEnumerat or' % cpp_class if has_cross_origin_named_enumerator else 'nullptr' %} 454 {% set cross_origin_named_enumerator = '%sV8Internal::crossOriginNamedEnumerat or' % cpp_class if has_cross_origin_named_enumerator else 'nullptr' %}
453 {% set cross_origin_indexed_getter = '%sV8Internal::crossOriginIndexedGetter' % cpp_class if has_cross_origin_indexed_getter else 'nullptr' %} 455 {% set cross_origin_indexed_getter = '%sV8Internal::crossOriginIndexedGetter' % cpp_class if has_cross_origin_indexed_getter else 'nullptr' %}
454 instanceTemplate->SetAccessCheckCallbackAndHandler({{cpp_class}}V8Internal::se curityCheck, v8::NamedPropertyHandlerConfiguration({{cross_origin_named_getter}} , {{cross_origin_named_setter}}, nullptr, nullptr, {{cross_origin_named_enumerat or}}), v8::IndexedPropertyHandlerConfiguration({{cross_origin_indexed_getter}}), v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperT ypeInfo))); 456 instanceTemplate->SetAccessCheckCallbackAndHandler({{cpp_class}}V8Internal::se curityCheck, v8::NamedPropertyHandlerConfiguration({{cross_origin_named_getter}} , {{cross_origin_named_setter}}, nullptr, nullptr, {{cross_origin_named_enumerat or}}), v8::IndexedPropertyHandlerConfiguration({{cross_origin_indexed_getter}}), v8::External::New(isolate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperT ypeInfo)));
455 {% endif %} 457 {% endif %}
456 458
457 {%- for group in attributes | purely_runtime_enabled_attributes | groupby('run time_feature_name') %}{{newline}} 459 {% for group in attributes | purely_runtime_enabled_attributes | groupby('runt ime_feature_name') %}
458 if ({{group.list[0].runtime_enabled_function}}()) { 460 if ({{group.list[0].runtime_enabled_function}}()) {
459 {% for attribute in group.list | unique_by('name') | sort %} 461 {% for attribute in group.list | unique_by('name') | sort %}
460 {% if attribute.is_data_type_property %} 462 {% if attribute.is_data_type_property %}
461 const V8DOMConfiguration::AttributeConfiguration attribute{{attribute.name}} Configuration = {{attribute_configuration(attribute)}}; 463 const V8DOMConfiguration::AttributeConfiguration attribute{{attribute.name}} Configuration = {{attribute_configuration(attribute)}};
462 V8DOMConfiguration::installAttribute(isolate, world, instanceTemplate, proto typeTemplate, attribute{{attribute.name}}Configuration); 464 V8DOMConfiguration::installAttribute(isolate, world, instanceTemplate, proto typeTemplate, attribute{{attribute.name}}Configuration);
463 {% else %} 465 {% else %}
464 const V8DOMConfiguration::AccessorConfiguration accessor{{attribute.name}}Co nfiguration = {{attribute_configuration(attribute)}}; 466 const V8DOMConfiguration::AccessorConfiguration accessor{{attribute.name}}Co nfiguration = {{attribute_configuration(attribute)}};
465 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessor{{attribute.name}}Configurati on); 467 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessor{{attribute.name}}Configurati on);
466 {% endif %} 468 {% endif %}
467 {% endfor %} 469 {% endfor %}
(...skipping 17 matching lines...) Expand all
485 {% if iterator_method %} 487 {% if iterator_method %}
486 {% filter exposed(iterator_method.exposed_test) %} 488 {% filter exposed(iterator_method.exposed_test) %}
487 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} 489 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %}
488 // Iterator (@@iterator) 490 // Iterator (@@iterator)
489 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Internal::ite ratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype }; 491 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Internal::ite ratorMethodCallback, 0, v8::DontEnum, V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype };
490 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration); 492 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration);
491 {% endfilter %} 493 {% endfilter %}
492 {% endfilter %} 494 {% endfilter %}
493 {% endif %} 495 {% endif %}
494 496
495 {%- if legacy_caller and not is_partial %}{{newline}} 497 {% if legacy_caller and not is_partial %}
496 instanceTemplate->SetCallAsFunctionHandler({{cpp_class_or_partial}}V8Internal: :{{legacy_caller.name}}MethodCallback); 498 instanceTemplate->SetCallAsFunctionHandler({{cpp_class_or_partial}}V8Internal: :{{legacy_caller.name}}MethodCallback);
497 {%- elif has_custom_legacy_call_as_function and not is_partial %}{{newline}} 499 {% elif has_custom_legacy_call_as_function and not is_partial %}
498 instanceTemplate->SetCallAsFunctionHandler({{v8_class}}::legacyCallCustom); 500 instanceTemplate->SetCallAsFunctionHandler({{v8_class}}::legacyCallCustom);
499 {% endif %} 501 {% endif %}
500 502
501 {%- if interface_name == 'HTMLAllCollection' and not is_partial %}{{newline}} 503 {% if interface_name == 'HTMLAllCollection' and not is_partial %}
502 // Needed for legacy support of document.all 504 // Needed for legacy support of document.all
503 instanceTemplate->MarkAsUndetectable(); 505 instanceTemplate->MarkAsUndetectable();
504 {% endif %} 506 {% endif %}
505 507
506 {%- if methods | custom_registration(is_partial) %}{{newline}} 508 {% if methods | custom_registration(is_partial) %}
507 {% for method in methods | custom_registration(is_partial) %} 509 {% for method in methods | custom_registration(is_partial) %}
508 {# install_custom_signature #} 510 {# install_custom_signature #}
509 {% filter exposed(method.overloads.exposed_test_all 511 {% filter exposed(method.overloads.exposed_test_all
510 if method.overloads else method.exposed_test) %} 512 if method.overloads else method.exposed_test) %}
511 {% filter runtime_enabled(method.overloads.runtime_enabled_function_all 513 {% filter runtime_enabled(method.overloads.runtime_enabled_function_all
512 if method.overloads else method.runtime_enabled_func tion) %} 514 if method.overloads else method.runtime_enabled_func tion) %}
513 {% if method.is_cross_origin %} 515 {% if method.is_cross_origin %}
514 {# TODO(dcheng): Currently, bindings must create a function object for each 516 {# TODO(dcheng): Currently, bindings must create a function object for each
515 realm as a hack to support the incumbent realm. Remove this when Blink 517 realm as a hack to support the incumbent realm. Remove this when Blink
516 properly supports the incumbent realm. #} 518 properly supports the incumbent realm. #}
517 {{install_origin_safe_method(method, '', 'instanceTemplate', 'prototypeTemplat e') | indent(2)}} 519 {{install_origin_safe_method(method, '', 'instanceTemplate', 'prototypeTemplat e') | indent(2)}}
518 {% else %} 520 {% else %}
519 {{install_custom_signature(method, 'instanceTemplate', 'prototypeTemplate', 'i nterfaceTemplate', 'signature') | indent(2)}} 521 {{install_custom_signature(method, 'instanceTemplate', 'prototypeTemplate', 'i nterfaceTemplate', 'signature') | indent(2)}}
520 {% endif %} 522 {% endif %}
521 {% endfilter %} 523 {% endfilter %}
522 {% endfilter %} 524 {% endfilter %}
523 {% endfor %} 525 {% endfor %}
524 {% endif %} 526 {% endif %}
525 } 527 }
526 528
527 {% endif %}{# not is_array_buffer_or_view #} 529 {% endif %}{# not is_array_buffer_or_view #}
528 {% endblock %} 530 {% endblock %}
529 {##############################################################################} 531 {##############################################################################}
530 {% block origin_trials %} 532 {% block origin_trials %}
531 {% from 'attributes.cpp.tmpl' import attribute_configuration with context %} 533 {% from 'attributes.cpp.tmpl' import attribute_configuration with context %}
532 {% from 'constants.cpp.tmpl' import constant_configuration with context %} 534 {% from 'constants.cpp.tmpl' import constant_configuration with context %}
533 {% from 'methods.cpp.tmpl' import method_configuration with context %} 535 {% from 'methods.cpp.tmpl' import method_configuration with context %}
534 {% for origin_trial_feature in origin_trial_features %}{{newline}} 536 {% for origin_trial_feature in origin_trial_features %}
535 void {{v8_class_or_partial}}::install{{origin_trial_feature.name}}(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local <v8::Object> prototype, v8::Local<v8::Function> interface) { 537 void {{v8_class_or_partial}}::install{{origin_trial_feature.name}}(v8::Isolate* isolate, const DOMWrapperWorld& world, v8::Local<v8::Object> instance, v8::Local <v8::Object> prototype, v8::Local<v8::Function> interface) {
536 {% if attributes | for_origin_trial_feature(origin_trial_feature.name) or 538 {% if attributes | for_origin_trial_feature(origin_trial_feature.name) or
537 methods | method_for_origin_trial_feature(origin_trial_feature.name, is_ partial) %} 539 methods | method_for_origin_trial_feature(origin_trial_feature.name, is_ partial) %}
538 v8::Local<v8::FunctionTemplate> interfaceTemplate = {{v8_class}}::wrapperTypeI nfo.domTemplate(isolate, world); 540 v8::Local<v8::FunctionTemplate> interfaceTemplate = {{v8_class}}::wrapperTypeI nfo.domTemplate(isolate, world);
539 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 541 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
540 ALLOW_UNUSED_LOCAL(signature); 542 ALLOW_UNUSED_LOCAL(signature);
541 {% endif %} 543 {% endif %}
542 {# Origin-Trial-enabled attributes #} 544 {# Origin-Trial-enabled attributes #}
543 {% for attribute in attributes | for_origin_trial_feature(origin_trial_feature .name) | unique_by('name') | sort %} 545 {% for attribute in attributes | for_origin_trial_feature(origin_trial_feature .name) | unique_by('name') | sort %}
544 {% if attribute.is_data_type_property %} 546 {% if attribute.is_data_type_property %}
(...skipping 24 matching lines...) Expand all
569 v8::Local<v8::Function> interface = perContextData->constructorForType(&{{v8_c lass}}::wrapperTypeInfo); 571 v8::Local<v8::Function> interface = perContextData->constructorForType(&{{v8_c lass}}::wrapperTypeInfo);
570 ALLOW_UNUSED_LOCAL(interface); 572 ALLOW_UNUSED_LOCAL(interface);
571 install{{origin_trial_feature.name}}(scriptState->isolate(), scriptState->worl d(), instance, prototype, interface); 573 install{{origin_trial_feature.name}}(scriptState->isolate(), scriptState->worl d(), instance, prototype, interface);
572 } 574 }
573 {% if not origin_trial_feature.needs_instance %} 575 {% if not origin_trial_feature.needs_instance %}
574 576
575 void {{v8_class_or_partial}}::install{{origin_trial_feature.name}}(ScriptState* scriptState) { 577 void {{v8_class_or_partial}}::install{{origin_trial_feature.name}}(ScriptState* scriptState) {
576 install{{origin_trial_feature.name}}(scriptState, v8::Local<v8::Object>()); 578 install{{origin_trial_feature.name}}(scriptState, v8::Local<v8::Object>());
577 } 579 }
578 {% endif %} 580 {% endif %}
581
579 {% endfor %} 582 {% endfor %}
580 {% endblock %} 583 {% endblock %}
581 {##############################################################################} 584 {##############################################################################}
582 {% block get_dom_template %}{% endblock %} 585 {% block get_dom_template %}{% endblock %}
583 {% block get_dom_template_for_named_properties_object %}{% endblock %} 586 {% block get_dom_template_for_named_properties_object %}{% endblock %}
584 {% block has_instance %}{% endblock %} 587 {% block has_instance %}{% endblock %}
585 {% block to_impl %}{% endblock %} 588 {% block to_impl %}{% endblock %}
586 {% block to_impl_with_type_check %}{% endblock %} 589 {% block to_impl_with_type_check %}{% endblock %}
587 {##############################################################################} 590 {##############################################################################}
588 {% block prepare_prototype_and_interface_object %}{% endblock %} 591 {% block prepare_prototype_and_interface_object %}{% endblock %}
589 {##############################################################################} 592 {##############################################################################}
590 {% for method in methods if method.is_implemented_in_private_script and method.v isible %} 593 {% for method in methods if method.is_implemented_in_private_script and method.v isible %}
591 {{method_implemented_in_private_script(method)}} 594 {{method_implemented_in_private_script(method)}}
592 {% endfor %} 595 {% endfor %}
593 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 596 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
594 {{attribute_getter_implemented_in_private_script(attribute)}} 597 {{attribute_getter_implemented_in_private_script(attribute)}}
595 {% if attribute.has_setter %} 598 {% if attribute.has_setter %}
596 {{attribute_setter_implemented_in_private_script(attribute)}} 599 {{attribute_setter_implemented_in_private_script(attribute)}}
597 {% endif %} 600 {% endif %}
598 {% endfor %} 601 {% endfor %}
599 {% block partial_interface %}{% endblock %} 602 {% block partial_interface %}{% endblock %}
600 } // namespace blink 603 } // namespace blink
601 604
602 {% endfilter %}{# format_blink_cpp_source_code #} 605 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698