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

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

Issue 751223003: IDL: Support runtime enabled overloads affecting Function.length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: eliminate "info.Length() < 0" branches Created 6 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
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 {% filter conditional(conditional_string) %} 8 {% filter conditional(conditional_string) %}
9 #include "{{v8_class_or_partial}}.h" 9 #include "{{v8_class_or_partial}}.h"
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 {{cpp_class}}* impl = {{v8_class}}::toImpl(host); 133 {{cpp_class}}* impl = {{v8_class}}::toImpl(host);
134 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(), impl->frame(), DoNotReportSecurityError); 134 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(), impl->frame(), DoNotReportSecurityError);
135 } 135 }
136 136
137 {% endif %} 137 {% endif %}
138 {% endblock %} 138 {% endblock %}
139 {##############################################################################} 139 {##############################################################################}
140 {# Methods #} 140 {# Methods #}
141 {% from 'methods.cpp' import generate_method, overload_resolution_method, 141 {% from 'methods.cpp' import generate_method, overload_resolution_method,
142 method_callback, origin_safe_method_getter, generate_constructor, 142 method_callback, origin_safe_method_getter, generate_constructor,
143 method_implemented_in_private_script 143 method_implemented_in_private_script, runtime_determined_length_method
144 with context %} 144 with context %}
145 {% for method in methods %} 145 {% for method in methods %}
146 {% if method.should_be_exposed_to_script %} 146 {% if method.should_be_exposed_to_script %}
147 {% for world_suffix in method.world_suffixes %} 147 {% for world_suffix in method.world_suffixes %}
148 {% if not method.is_custom and method.visible %} 148 {% if not method.is_custom and method.visible %}
149 {{generate_method(method, world_suffix)}} 149 {{generate_method(method, world_suffix)}}
150 {% endif %} 150 {% endif %}
151 {% if method.overloads and method.overloads.visible %} 151 {% if method.overloads and method.overloads.visible %}
152 {% if method.overloads.runtime_determined_lengths %}
153 {{runtime_determined_length_method(method.overloads)}}
154 {% endif %}
152 {{overload_resolution_method(method.overloads, world_suffix)}} 155 {{overload_resolution_method(method.overloads, world_suffix)}}
153 {% endif %} 156 {% endif %}
154 {% if not method.overload_index or method.overloads %} 157 {% if not method.overload_index or method.overloads %}
155 {# Document about the following condition: #} 158 {# Document about the following condition: #}
156 {# https://docs.google.com/document/d/1qBC7Therp437Jbt_QYAtNYMZs6zQ_7_tnMkNUG_AC qs/edit?usp=sharing #} 159 {# https://docs.google.com/document/d/1qBC7Therp437Jbt_QYAtNYMZs6zQ_7_tnMkNUG_AC qs/edit?usp=sharing #}
157 {% if (method.overloads and method.overloads.visible and 160 {% if (method.overloads and method.overloads.visible and
158 (not method.overloads.has_partial_overloads or not is_partial)) or 161 (not method.overloads.has_partial_overloads or not is_partial)) or
159 (not method.overloads and method.visible) %} 162 (not method.overloads and method.visible) %}
160 {# A single callback is generated for overloaded methods #} 163 {# A single callback is generated for overloaded methods #}
161 {# with considering partial overloads #} 164 {# with considering partial overloads #}
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 {% endfor %} 460 {% endfor %}
458 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 461 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
459 {{attribute_getter_implemented_in_private_script(attribute)}} 462 {{attribute_getter_implemented_in_private_script(attribute)}}
460 {% if not attribute.is_read_only or attribute.put_forwards %} 463 {% if not attribute.is_read_only or attribute.put_forwards %}
461 {{attribute_setter_implemented_in_private_script(attribute)}} 464 {{attribute_setter_implemented_in_private_script(attribute)}}
462 {% endif %} 465 {% endif %}
463 {% endfor %} 466 {% endfor %}
464 {% block partial_interface %}{% endblock %} 467 {% block partial_interface %}{% endblock %}
465 } // namespace blink 468 } // namespace blink
466 {% endfilter %} 469 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698