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

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

Issue 360703003: Implement Blink-in-JS for DOM methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 // 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}}.h" 9 #include "{{v8_class}}.h"
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 {% block constructor_getter %}{% endblock %} 76 {% block constructor_getter %}{% endblock %}
77 {% for attribute in attributes if attribute.needs_constructor_getter_callback %} 77 {% for attribute in attributes if attribute.needs_constructor_getter_callback %}
78 {% for world_suffix in attribute.world_suffixes %} 78 {% for world_suffix in attribute.world_suffixes %}
79 {{constructor_getter_callback(attribute, world_suffix)}} 79 {{constructor_getter_callback(attribute, world_suffix)}}
80 {% endfor %} 80 {% endfor %}
81 {% endfor %} 81 {% endfor %}
82 {% block replaceable_attribute_setter_and_callback %}{% endblock %} 82 {% block replaceable_attribute_setter_and_callback %}{% endblock %}
83 {% block security_check_functions %}{% endblock %} 83 {% block security_check_functions %}{% endblock %}
84 {# Methods #} 84 {# Methods #}
85 {% from 'methods.cpp' import generate_method, overload_resolution_method, 85 {% from 'methods.cpp' import generate_method, overload_resolution_method,
86 method_callback, origin_safe_method_getter, generate_constructor 86 method_callback, origin_safe_method_getter, generate_constructor,
87 method_implemented_in_private_script
87 with context %} 88 with context %}
88 {% for method in methods %} 89 {% for method in methods %}
89 {% for world_suffix in method.world_suffixes %} 90 {% for world_suffix in method.world_suffixes %}
Jens Widell 2014/06/30 18:32:37 The method_implemented_in_private_script() macro d
haraken 2014/07/01 04:09:55 Good point. I moved method_implemented_in_private_
91 {% if method.is_implemented_in_private_script %}
92 {{method_implemented_in_private_script(method)}}
93 {% endif %}
90 {% if not method.is_custom %} 94 {% if not method.is_custom %}
91 {{generate_method(method, world_suffix)}} 95 {{generate_method(method, world_suffix)}}
92 {% endif %} 96 {% endif %}
93 {% if method.overloads %} 97 {% if method.overloads %}
94 {{overload_resolution_method(method.overloads, world_suffix)}} 98 {{overload_resolution_method(method.overloads, world_suffix)}}
95 {% endif %} 99 {% endif %}
96 {% if not method.overload_index or method.overloads %} 100 {% if not method.overload_index or method.overloads %}
97 {# A single callback is generated for overloaded methods #} 101 {# A single callback is generated for overloaded methods #}
98 {{method_callback(method, world_suffix)}} 102 {{method_callback(method, world_suffix)}}
99 {% endif %} 103 {% endif %}
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 {% block install_per_context_attributes %}{% endblock %} 148 {% block install_per_context_attributes %}{% endblock %}
145 {% block install_per_context_methods %}{% endblock %} 149 {% block install_per_context_methods %}{% endblock %}
146 {% block to_active_dom_object %}{% endblock %} 150 {% block to_active_dom_object %}{% endblock %}
147 {% block to_event_target %}{% endblock %} 151 {% block to_event_target %}{% endblock %}
148 {% block get_shadow_object_template %}{% endblock %} 152 {% block get_shadow_object_template %}{% endblock %}
149 {% block wrap %}{% endblock %} 153 {% block wrap %}{% endblock %}
150 {% block create_wrapper %}{% endblock %} 154 {% block create_wrapper %}{% endblock %}
151 {% block deref_object_and_to_v8_no_inline %}{% endblock %} 155 {% block deref_object_and_to_v8_no_inline %}{% endblock %}
152 } // namespace WebCore 156 } // namespace WebCore
153 {% endfilter %} 157 {% endfilter %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698