| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 'WrapperTypeObjectPrototype' %} | 74 'WrapperTypeObjectPrototype' %} |
| 75 {% set will_be_garbage_collected = 'true' | 75 {% set will_be_garbage_collected = 'true' |
| 76 if is_will_be_garbage_collected else 'false' %} | 76 if is_will_be_garbage_collected else 'false' %} |
| 77 const WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin::kEmbedderBlink, {{v
8_class}}::domTemplate, {{v8_class}}::derefObject, {{to_active_dom_object}}, {{t
o_event_target}}, {{visit_dom_wrapper}}, {{v8_class}}::installPerContextEnabledM
ethods, {{parent_wrapper_type_info}}, {{wrapper_type_prototype}}, {{will_be_garb
age_collected}} }; | 77 const WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin::kEmbedderBlink, {{v
8_class}}::domTemplate, {{v8_class}}::derefObject, {{to_active_dom_object}}, {{t
o_event_target}}, {{visit_dom_wrapper}}, {{v8_class}}::installPerContextEnabledM
ethods, {{parent_wrapper_type_info}}, {{wrapper_type_prototype}}, {{will_be_garb
age_collected}} }; |
| 78 | 78 |
| 79 namespace {{cpp_class}}V8Internal { | 79 namespace {{cpp_class}}V8Internal { |
| 80 | 80 |
| 81 template <typename T> void V8_USE(T) { } | 81 template <typename T> void V8_USE(T) { } |
| 82 | 82 |
| 83 {# Attributes #} | 83 {# Attributes #} |
| 84 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, | 84 {% from 'attributes.cpp' import constructor_getter_callback, |
| 85 attribute_getter, attribute_getter_callback, |
| 85 attribute_setter, attribute_setter_callback | 86 attribute_setter, attribute_setter_callback |
| 86 with context %} | 87 with context %} |
| 87 {% for attribute in attributes if not attribute.constructor_type %} | 88 {% for attribute in attributes if not attribute.constructor_type %} |
| 88 {% for world_suffix in attribute.world_suffixes %} | 89 {% for world_suffix in attribute.world_suffixes %} |
| 89 {% if not attribute.has_custom_getter %} | 90 {% if not attribute.has_custom_getter %} |
| 90 {{attribute_getter(attribute, world_suffix)}} | 91 {{attribute_getter(attribute, world_suffix)}} |
| 91 {% endif %} | 92 {% endif %} |
| 92 {{attribute_getter_callback(attribute, world_suffix)}} | 93 {{attribute_getter_callback(attribute, world_suffix)}} |
| 93 {% if not attribute.is_read_only or attribute.put_forwards %} | 94 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 94 {% if not attribute.has_custom_setter %} | 95 {% if not attribute.has_custom_setter %} |
| 95 {{attribute_setter(attribute, world_suffix)}} | 96 {{attribute_setter(attribute, world_suffix)}} |
| 96 {% endif %} | 97 {% endif %} |
| 97 {{attribute_setter_callback(attribute, world_suffix)}} | 98 {{attribute_setter_callback(attribute, world_suffix)}} |
| 98 {% endif %} | 99 {% endif %} |
| 99 {% endfor %} | 100 {% endfor %} |
| 100 {% endfor %} | 101 {% endfor %} |
| 101 {% block constructor_getter %}{% endblock %} | 102 {% block constructor_getter %}{% endblock %} |
| 103 {% for attribute in attributes if attribute.needs_constructor_getter_callback %} |
| 104 {% for world_suffix in attribute.world_suffixes %} |
| 105 {{constructor_getter_callback(attribute, world_suffix)}} |
| 106 {% endfor %} |
| 107 {% endfor %} |
| 102 {% block replaceable_attribute_setter_and_callback %}{% endblock %} | 108 {% block replaceable_attribute_setter_and_callback %}{% endblock %} |
| 103 {% block security_check_functions %}{% endblock %} | 109 {% block security_check_functions %}{% endblock %} |
| 104 {# Methods #} | 110 {# Methods #} |
| 105 {% from 'methods.cpp' import generate_method, overload_resolution_method, | 111 {% from 'methods.cpp' import generate_method, overload_resolution_method, |
| 106 method_callback, origin_safe_method_getter, generate_constructor | 112 method_callback, origin_safe_method_getter, generate_constructor |
| 107 with context %} | 113 with context %} |
| 108 {% for method in methods %} | 114 {% for method in methods %} |
| 109 {% for world_suffix in method.world_suffixes %} | 115 {% for world_suffix in method.world_suffixes %} |
| 110 {% if not method.is_custom %} | 116 {% if not method.is_custom %} |
| 111 {{generate_method(method, world_suffix)}} | 117 {{generate_method(method, world_suffix)}} |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 {% block install_per_context_attributes %}{% endblock %} | 170 {% block install_per_context_attributes %}{% endblock %} |
| 165 {% block install_per_context_methods %}{% endblock %} | 171 {% block install_per_context_methods %}{% endblock %} |
| 166 {% block to_active_dom_object %}{% endblock %} | 172 {% block to_active_dom_object %}{% endblock %} |
| 167 {% block to_event_target %}{% endblock %} | 173 {% block to_event_target %}{% endblock %} |
| 168 {% block get_shadow_object_template %}{% endblock %} | 174 {% block get_shadow_object_template %}{% endblock %} |
| 169 {% block wrap %}{% endblock %} | 175 {% block wrap %}{% endblock %} |
| 170 {% block create_wrapper %}{% endblock %} | 176 {% block create_wrapper %}{% endblock %} |
| 171 {% block deref_object_and_to_v8_no_inline %}{% endblock %} | 177 {% block deref_object_and_to_v8_no_inline %}{% endblock %} |
| 172 } // namespace WebCore | 178 } // namespace WebCore |
| 173 {% endfilter %} | 179 {% endfilter %} |
| OLD | NEW |