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

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

Issue 1132243004: IDL: Determine maximum distinguishing argument index runtime, if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 {{cpp_class}}* impl = {{v8_class}}::toImpl(host); 130 {{cpp_class}}* impl = {{v8_class}}::toImpl(host);
131 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(), impl->frame(), DoNotReportSecurityError); 131 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(), impl->frame(), DoNotReportSecurityError);
132 } 132 }
133 133
134 {% endif %} 134 {% endif %}
135 {% endblock %} 135 {% endblock %}
136 {##############################################################################} 136 {##############################################################################}
137 {# Methods #} 137 {# Methods #}
138 {% from 'methods.cpp' import generate_method, overload_resolution_method, 138 {% from 'methods.cpp' import generate_method, overload_resolution_method,
139 method_callback, origin_safe_method_getter, generate_constructor, 139 method_callback, origin_safe_method_getter, generate_constructor,
140 method_implemented_in_private_script, runtime_determined_length_method 140 method_implemented_in_private_script, runtime_determined_length_method,
141 runtime_determined_maxarg_method
141 with context %} 142 with context %}
142 {% for method in methods %} 143 {% for method in methods %}
143 {% if method.should_be_exposed_to_script %} 144 {% if method.should_be_exposed_to_script %}
144 {% for world_suffix in method.world_suffixes %} 145 {% for world_suffix in method.world_suffixes %}
145 {% if not method.is_custom and method.visible %} 146 {% if not method.is_custom and method.visible %}
146 {{generate_method(method, world_suffix)}} 147 {{generate_method(method, world_suffix)}}
147 {% endif %} 148 {% endif %}
148 {% if method.overloads and method.overloads.visible %} 149 {% if method.overloads and method.overloads.visible %}
149 {% if method.overloads.runtime_determined_lengths %} 150 {% if method.overloads.runtime_determined_lengths %}
150 {{runtime_determined_length_method(method.overloads)}} 151 {{runtime_determined_length_method(method.overloads)}}
151 {% endif %} 152 {% endif %}
153 {% if method.overloads.runtime_determined_maxargs %}
154 {{runtime_determined_maxarg_method(method.overloads)}}
155 {% endif %}
152 {{overload_resolution_method(method.overloads, world_suffix)}} 156 {{overload_resolution_method(method.overloads, world_suffix)}}
153 {% endif %} 157 {% endif %}
154 {% if not method.overload_index or method.overloads %} 158 {% if not method.overload_index or method.overloads %}
155 {# Document about the following condition: #} 159 {# Document about the following condition: #}
156 {# https://docs.google.com/document/d/1qBC7Therp437Jbt_QYAtNYMZs6zQ_7_tnMkNUG_AC qs/edit?usp=sharing #} 160 {# https://docs.google.com/document/d/1qBC7Therp437Jbt_QYAtNYMZs6zQ_7_tnMkNUG_AC qs/edit?usp=sharing #}
157 {% if (method.overloads and method.overloads.visible and 161 {% if (method.overloads and method.overloads.visible and
158 (not method.overloads.has_partial_overloads or not is_partial)) or 162 (not method.overloads.has_partial_overloads or not is_partial)) or
159 (not method.overloads and method.visible) %} 163 (not method.overloads and method.visible) %}
160 {# A single callback is generated for overloaded methods #} 164 {# A single callback is generated for overloaded methods #}
161 {# with considering partial overloads #} 165 {# with considering partial overloads #}
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 {% endfor %} 491 {% endfor %}
488 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 492 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
489 {{attribute_getter_implemented_in_private_script(attribute)}} 493 {{attribute_getter_implemented_in_private_script(attribute)}}
490 {% if attribute.has_setter %} 494 {% if attribute.has_setter %}
491 {{attribute_setter_implemented_in_private_script(attribute)}} 495 {{attribute_setter_implemented_in_private_script(attribute)}}
492 {% endif %} 496 {% endif %}
493 {% endfor %} 497 {% endfor %}
494 {% block partial_interface %}{% endblock %} 498 {% block partial_interface %}{% endblock %}
495 } // namespace blink 499 } // namespace blink
496 {% endfilter %} 500 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698