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

Side by Side Diff: Source/bindings/templates/interface_base.cpp

Issue 1181113006: bindings: Introduces on_{instance,prototype,interface} in the code generator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 years, 6 months 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 | Annotate | Revision Log
OLDNEW
1 {% include 'copyright_block.txt' %} 1 {% include 'copyright_block.txt' %}
2 #include "config.h" 2 #include "config.h"
3 {% filter conditional(conditional_string) %} 3 {% filter conditional(conditional_string) %}
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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 {% endif %} 331 {% endif %}
332 {% for attribute in attributes 332 {% for attribute in attributes
333 if attribute.runtime_enabled_function and 333 if attribute.runtime_enabled_function and
334 not attribute.exposed_test and 334 not attribute.exposed_test and
335 not attribute.is_static %} 335 not attribute.is_static %}
336 {% filter conditional(attribute.conditional_string) %} 336 {% filter conditional(attribute.conditional_string) %}
337 if ({{attribute.runtime_enabled_function}}()) { 337 if ({{attribute.runtime_enabled_function}}()) {
338 {% if attribute.is_expose_js_accessors %} 338 {% if attribute.is_expose_js_accessors %}
339 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion =\ 339 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion =\
340 {{attribute_configuration(attribute)}}; 340 {{attribute_configuration(attribute)}};
341 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS ignature, accessorConfiguration); 341 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype Template, functionTemplate, defaultSignature, accessorConfiguration);
342 {% else %} 342 {% else %}
343 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 343 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
344 {{attribute_configuration(attribute)}}; 344 {{attribute_configuration(attribute)}};
345 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration); 345 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
346 {% endif %} 346 {% endif %}
347 } 347 }
348 {% endfilter %} 348 {% endfilter %}
349 {% endfor %} 349 {% endfor %}
350 {% if constants %} 350 {% if constants %}
351 {{install_constants() | indent}} 351 {{install_constants() | indent}}
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 {% endfor %} 493 {% endfor %}
494 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 494 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
495 {{attribute_getter_implemented_in_private_script(attribute)}} 495 {{attribute_getter_implemented_in_private_script(attribute)}}
496 {% if attribute.has_setter %} 496 {% if attribute.has_setter %}
497 {{attribute_setter_implemented_in_private_script(attribute)}} 497 {{attribute_setter_implemented_in_private_script(attribute)}}
498 {% endif %} 498 {% endif %}
499 {% endfor %} 499 {% endfor %}
500 {% block partial_interface %}{% endblock %} 500 {% block partial_interface %}{% endblock %}
501 } // namespace blink 501 } // namespace blink
502 {% endfilter %} 502 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/tests/results/core/V8SVGTestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698