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 30 matching lines...) Expand all Loading... |
41 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class | 41 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class |
42 if is_active_dom_object else '0' %} | 42 if is_active_dom_object else '0' %} |
43 {% set to_event_target = '%s::toEventTarget' % v8_class | 43 {% set to_event_target = '%s::toEventTarget' % v8_class |
44 if is_event_target else '0' %} | 44 if is_event_target else '0' %} |
45 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class | 45 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class |
46 if has_visit_dom_wrapper else '0' %} | 46 if has_visit_dom_wrapper else '0' %} |
47 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface | 47 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface |
48 if parent_interface else '0' %} | 48 if parent_interface else '0' %} |
49 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception
else | 49 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception
else |
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}}::installConditionallyEnabl
edMethods, {{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 attribute_getter_implemented_in_private_script, | 61 attribute_getter_implemented_in_private_script, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 {% block install_accessors %}{% endblock %} | 141 {% block install_accessors %}{% endblock %} |
142 {% block install_methods %}{% endblock %} | 142 {% block install_methods %}{% endblock %} |
143 {% block named_constructor %}{% endblock %} | 143 {% block named_constructor %}{% endblock %} |
144 {% block initialize_event %}{% endblock %} | 144 {% block initialize_event %}{% endblock %} |
145 {% block constructor_callback %}{% endblock %} | 145 {% block constructor_callback %}{% endblock %} |
146 {% block configure_shadow_object_template %}{% endblock %} | 146 {% block configure_shadow_object_template %}{% endblock %} |
147 {% block install_dom_template %}{% endblock %} | 147 {% block install_dom_template %}{% endblock %} |
148 {% block get_dom_template %}{% endblock %} | 148 {% block get_dom_template %}{% endblock %} |
149 {% block has_instance %}{% endblock %} | 149 {% block has_instance %}{% endblock %} |
150 {% block to_native_with_type_check %}{% endblock %} | 150 {% block to_native_with_type_check %}{% endblock %} |
151 {% block install_per_context_attributes %}{% endblock %} | 151 {% block install_conditional_attributes %}{% endblock %} |
152 {% block install_per_context_methods %}{% endblock %} | 152 {% block install_conditional_methods %}{% endblock %} |
153 {% block to_active_dom_object %}{% endblock %} | 153 {% block to_active_dom_object %}{% endblock %} |
154 {% block to_event_target %}{% endblock %} | 154 {% block to_event_target %}{% endblock %} |
155 {% block get_shadow_object_template %}{% endblock %} | 155 {% block get_shadow_object_template %}{% endblock %} |
156 {% block wrap %}{% endblock %} | 156 {% block wrap %}{% endblock %} |
157 {% block create_wrapper %}{% endblock %} | 157 {% block create_wrapper %}{% endblock %} |
158 {% block deref_object_and_to_v8_no_inline %}{% endblock %} | 158 {% block deref_object_and_to_v8_no_inline %}{% endblock %} |
159 {% for method in methods if method.is_implemented_in_private_script %} | 159 {% for method in methods if method.is_implemented_in_private_script %} |
160 {{method_implemented_in_private_script(method)}} | 160 {{method_implemented_in_private_script(method)}} |
161 {% endfor %} | 161 {% endfor %} |
162 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 162 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
163 {{attribute_getter_implemented_in_private_script(attribute)}} | 163 {{attribute_getter_implemented_in_private_script(attribute)}} |
164 {% if not attribute.is_read_only or attribute.put_forwards %} | 164 {% if not attribute.is_read_only or attribute.put_forwards %} |
165 {{attribute_setter_implemented_in_private_script(attribute)}} | 165 {{attribute_setter_implemented_in_private_script(attribute)}} |
166 {% endif %} | 166 {% endif %} |
167 {% endfor %} | 167 {% endfor %} |
168 } // namespace blink | 168 } // namespace blink |
169 {% endfilter %} | 169 {% endfilter %} |
OLD | NEW |