OLD | NEW |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 'WrapperTypeObjectPrototype' %} | 50 'WrapperTypeObjectPrototype' %} |
51 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}}, {{gc_type}} }; | 51 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}}, {{gc_type}} }; |
52 | 52 |
53 namespace {{cpp_class}}V8Internal { | 53 namespace {{cpp_class}}V8Internal { |
54 | 54 |
55 template <typename T> void V8_USE(T) { } | 55 template <typename T> void V8_USE(T) { } |
56 | 56 |
57 {# Attributes #} | 57 {# Attributes #} |
58 {% from 'attributes.cpp' import constructor_getter_callback, | 58 {% from 'attributes.cpp' import constructor_getter_callback, |
59 attribute_getter, attribute_getter_callback, | 59 attribute_getter, attribute_getter_callback, |
60 attribute_setter, attribute_setter_callback | 60 attribute_setter, attribute_setter_callback, |
61 with context %} | 61 attribute_getter_implemented_in_private_script, |
| 62 attribute_setter_implemented_in_private_script |
| 63 with context %} |
62 {% for attribute in attributes if not attribute.constructor_type %} | 64 {% for attribute in attributes if not attribute.constructor_type %} |
| 65 {% if attribute.is_implemented_in_private_script %} |
| 66 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 67 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 68 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 69 {% endif %} |
| 70 {% endif %} |
63 {% for world_suffix in attribute.world_suffixes %} | 71 {% for world_suffix in attribute.world_suffixes %} |
64 {% if not attribute.has_custom_getter %} | 72 {% if not attribute.has_custom_getter %} |
65 {{attribute_getter(attribute, world_suffix)}} | 73 {{attribute_getter(attribute, world_suffix)}} |
66 {% endif %} | 74 {% endif %} |
67 {{attribute_getter_callback(attribute, world_suffix)}} | 75 {{attribute_getter_callback(attribute, world_suffix)}} |
68 {% if not attribute.is_read_only or attribute.put_forwards %} | 76 {% if not attribute.is_read_only or attribute.put_forwards %} |
69 {% if not attribute.has_custom_setter %} | 77 {% if not attribute.has_custom_setter %} |
70 {{attribute_setter(attribute, world_suffix)}} | 78 {{attribute_setter(attribute, world_suffix)}} |
71 {% endif %} | 79 {% endif %} |
72 {{attribute_setter_callback(attribute, world_suffix)}} | 80 {{attribute_setter_callback(attribute, world_suffix)}} |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 {% block install_per_context_attributes %}{% endblock %} | 156 {% block install_per_context_attributes %}{% endblock %} |
149 {% block install_per_context_methods %}{% endblock %} | 157 {% block install_per_context_methods %}{% endblock %} |
150 {% block to_active_dom_object %}{% endblock %} | 158 {% block to_active_dom_object %}{% endblock %} |
151 {% block to_event_target %}{% endblock %} | 159 {% block to_event_target %}{% endblock %} |
152 {% block get_shadow_object_template %}{% endblock %} | 160 {% block get_shadow_object_template %}{% endblock %} |
153 {% block wrap %}{% endblock %} | 161 {% block wrap %}{% endblock %} |
154 {% block create_wrapper %}{% endblock %} | 162 {% block create_wrapper %}{% endblock %} |
155 {% block deref_object_and_to_v8_no_inline %}{% endblock %} | 163 {% block deref_object_and_to_v8_no_inline %}{% endblock %} |
156 } // namespace WebCore | 164 } // namespace WebCore |
157 {% endfilter %} | 165 {% endfilter %} |
OLD | NEW |