Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} | 1 {# http://www.chromium.org/blink/coding-style#TOC-License #} |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 90 {% endif %} | 90 {% endif %} |
| 91 {{attribute_setter_callback(attribute, world_suffix)}} | 91 {{attribute_setter_callback(attribute, world_suffix)}} |
| 92 {% endif %} | 92 {% endif %} |
| 93 {% endfor %} | 93 {% endfor %} |
| 94 {% endfor %} | 94 {% endfor %} |
| 95 {% block constructor_getter %}{% endblock %} | 95 {% block constructor_getter %}{% endblock %} |
| 96 {% block replaceable_attribute_setter_and_callback %}{% endblock %} | 96 {% block replaceable_attribute_setter_and_callback %}{% endblock %} |
| 97 {% block security_check_functions %}{% endblock %} | 97 {% block security_check_functions %}{% endblock %} |
| 98 {# Methods #} | 98 {# Methods #} |
| 99 {% from 'methods.cpp' import generate_method, overload_resolution_method, | 99 {% from 'methods.cpp' import generate_method, overload_resolution_method, |
| 100 method_callback, origin_safe_method_getter, constructor_callback | 100 method_callback, origin_safe_method_getter, generate_constructor |
| 101 with context %} | 101 with context %} |
| 102 {% for method in methods %} | 102 {% for method in methods %} |
| 103 {% for world_suffix in method.world_suffixes %} | 103 {% for world_suffix in method.world_suffixes %} |
| 104 {% if not method.is_custom %} | 104 {% if not method.is_custom %} |
| 105 {{generate_method(method, world_suffix)}} | 105 {{generate_method(method, world_suffix)}} |
| 106 {% endif %} | 106 {% endif %} |
| 107 {% if method.overloads %} | 107 {% if method.overloads %} |
| 108 {{overload_resolution_method(method.overloads, world_suffix)}} | 108 {{overload_resolution_method(method.overloads, world_suffix)}} |
| 109 {% endif %} | 109 {% endif %} |
| 110 {% if not method.overload_index or method.overloads %} | 110 {% if not method.overload_index or method.overloads %} |
| 111 {# A single callback is generated for overloaded methods #} | 111 {# A single callback is generated for overloaded methods #} |
| 112 {{method_callback(method, world_suffix)}} | 112 {{method_callback(method, world_suffix)}} |
| 113 {% endif %} | 113 {% endif %} |
| 114 {% if method.is_do_not_check_security %} | 114 {% if method.is_do_not_check_security %} |
| 115 {{origin_safe_method_getter(method, world_suffix)}} | 115 {{origin_safe_method_getter(method, world_suffix)}} |
| 116 {% endif %} | 116 {% endif %} |
| 117 {% endfor %} | 117 {% endfor %} |
| 118 {% endfor %} | 118 {% endfor %} |
| 119 {% block origin_safe_method_setter %}{% endblock %} | 119 {% block origin_safe_method_setter %}{% endblock %} |
| 120 {# Constructors #} | 120 {# Constructors #} |
| 121 {% for constructor in constructors %} | 121 {% for constructor in constructors %} |
| 122 {{constructor_callback(constructor)}} | 122 {{generate_constructor(constructor)}} |
|
haraken
2013/12/16 08:56:18
Looks like we don't use "generate_" in other place
Nils Barth (inactive)
2013/12/16 09:29:45
We only use "generate_" to avoid collision with lo
| |
| 123 {% endfor %} | 123 {% endfor %} |
| 124 {% block overloaded_constructor_callback %}{% endblock %} | 124 {% block overloaded_constructor %}{% endblock %} |
| 125 {% block event_constructor %}{% endblock %} | 125 {% block event_constructor %}{% endblock %} |
| 126 } // namespace {{cpp_class}}V8Internal | 126 } // namespace {{cpp_class}}V8Internal |
| 127 | 127 |
| 128 {% block visit_dom_wrapper %}{% endblock %} | 128 {% block visit_dom_wrapper %}{% endblock %} |
| 129 {% block class_attributes %}{% endblock %} | 129 {% block class_attributes %}{% endblock %} |
| 130 {% block class_accessors %}{% endblock %} | 130 {% block class_accessors %}{% endblock %} |
| 131 {% block class_methods %}{% endblock %} | 131 {% block class_methods %}{% endblock %} |
| 132 {% block named_constructor %}{% endblock %} | |
| 132 {% block initialize_event %}{% endblock %} | 133 {% block initialize_event %}{% endblock %} |
| 133 {% block constructor_callback %}{% endblock %} | 134 {% block constructor_callback %}{% endblock %} |
| 134 {% block configure_class_template %}{% endblock %} | 135 {% block configure_class_template %}{% endblock %} |
| 135 {% block get_template %}{% endblock %} | 136 {% block get_template %}{% endblock %} |
| 136 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} | 137 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} |
| 137 {% block install_per_context_attributes %}{% endblock %} | 138 {% block install_per_context_attributes %}{% endblock %} |
| 138 {% block install_per_context_methods %}{% endblock %} | 139 {% block install_per_context_methods %}{% endblock %} |
| 139 {% block to_active_dom_object %}{% endblock %} | 140 {% block to_active_dom_object %}{% endblock %} |
| 140 {% block wrap %}{% endblock %} | 141 {% block wrap %}{% endblock %} |
| 141 {% block create_wrapper %}{% endblock %} | 142 {% block create_wrapper %}{% endblock %} |
| 142 {% block deref_object_and_to_v8_no_inline %}{% endblock %} | 143 {% block deref_object_and_to_v8_no_inline %}{% endblock %} |
| 143 } // namespace WebCore | 144 } // namespace WebCore |
| 144 {% endfilter %} | 145 {% endfilter %} |
| OLD | NEW |