| 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_or_partial}}.h" | 9 #include "{{v8_class_or_partial}}.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 'WrapperTypeObjectPrototype' %} | 23 'WrapperTypeObjectPrototype' %} |
| 24 {% set dom_template = '%s::domTemplate' % v8_class if not is_array_buffer_or_vie
w else '0' %} | 24 {% set dom_template = '%s::domTemplate' % v8_class if not is_array_buffer_or_vie
w else '0' %} |
| 25 | 25 |
| 26 {% set wrapper_type_info_const = '' if has_partial_interface else 'const ' %} | 26 {% set wrapper_type_info_const = '' if has_partial_interface else 'const ' %} |
| 27 {% if not is_partial %} | 27 {% if not is_partial %} |
| 28 {{wrapper_type_info_const}}WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin
::kEmbedderBlink, {{dom_template}}, {{v8_class}}::refObject, {{v8_class}}::deref
Object, {{v8_class}}::trace, {{to_active_dom_object}}, {{visit_dom_wrapper}}, {{
v8_class}}::installConditionallyEnabledMethods, {{v8_class}}::installConditional
lyEnabledProperties, "{{interface_name}}", {{parent_wrapper_type_info}}, Wrapper
TypeInfo::{{wrapper_type_prototype}}, WrapperTypeInfo::{{wrapper_class_id}}, Wra
pperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}}, Wrapp
erTypeInfo::{{gc_type}} }; | 28 {{wrapper_type_info_const}}WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin
::kEmbedderBlink, {{dom_template}}, {{v8_class}}::refObject, {{v8_class}}::deref
Object, {{v8_class}}::trace, {{to_active_dom_object}}, {{visit_dom_wrapper}}, {{
v8_class}}::installConditionallyEnabledMethods, {{v8_class}}::installConditional
lyEnabledProperties, "{{interface_name}}", {{parent_wrapper_type_info}}, Wrapper
TypeInfo::{{wrapper_type_prototype}}, WrapperTypeInfo::{{wrapper_class_id}}, Wra
pperTypeInfo::{{event_target_inheritance}}, WrapperTypeInfo::{{lifetime}}, Wrapp
erTypeInfo::{{gc_type}} }; |
| 29 | 29 |
| 30 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class}
}.h. | 30 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in {{cpp_class}
}.h. |
| 31 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 31 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 32 // bindings/core/v8/ScriptWrappable.h. | 32 // bindings/core/v8/ScriptWrappable.h. |
| 33 {% if is_typed_array_type %} | 33 {% if not is_typed_array_type %} |
| 34 template<> | 34 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
ypeInfo; |
| 35 {% endif %} | 35 {% endif %} |
| 36 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
ypeInfo; | |
| 37 | 36 |
| 38 {% endif %} | 37 {% endif %} |
| 39 {% if not is_array_buffer_or_view %} | 38 {% if not is_array_buffer_or_view %} |
| 40 namespace {{cpp_class_or_partial}}V8Internal { | 39 namespace {{cpp_class_or_partial}}V8Internal { |
| 41 {% if has_partial_interface %} | 40 {% if has_partial_interface %} |
| 42 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 41 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
| 43 static void (*{{method.name}}MethodForPartialInterface)(const v8::FunctionCallba
ckInfo<v8::Value>&) = 0; | 42 static void (*{{method.name}}MethodForPartialInterface)(const v8::FunctionCallba
ckInfo<v8::Value>&) = 0; |
| 44 {% endfor %} | 43 {% endfor %} |
| 45 {% endif %} | 44 {% endif %} |
| 46 | 45 |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 {% endfor %} | 498 {% endfor %} |
| 500 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 499 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 501 {{attribute_getter_implemented_in_private_script(attribute)}} | 500 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 502 {% if attribute.has_setter %} | 501 {% if attribute.has_setter %} |
| 503 {{attribute_setter_implemented_in_private_script(attribute)}} | 502 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 504 {% endif %} | 503 {% endif %} |
| 505 {% endfor %} | 504 {% endfor %} |
| 506 {% block partial_interface %}{% endblock %} | 505 {% block partial_interface %}{% endblock %} |
| 507 } // namespace blink | 506 } // namespace blink |
| 508 {% endfilter %} | 507 {% endfilter %} |
| OLD | NEW |