| 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 |
| 11 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} | 11 {% for filename in cpp_includes if filename != '%s.h' % v8_class %} |
| 12 #include "{{filename}}" | 12 #include "{{filename}}" |
| 13 {% endfor %} | 13 {% endfor %} |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class | 16 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class |
| 17 if is_active_dom_object else '0' %} | 17 if is_active_dom_object else '0' %} |
| 18 {% set to_event_target = '%s::toEventTarget' % v8_class | 18 {% set to_event_target = '%s::toEventTarget' % v8_class |
| 19 if is_event_target else '0' %} | 19 if is_event_target else '0' %} |
| 20 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class | 20 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class |
| 21 if has_visit_dom_wrapper else '0' %} | 21 if has_visit_dom_wrapper else '0' %} |
| 22 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface | 22 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface |
| 23 if parent_interface else '0' %} | 23 if parent_interface else '0' %} |
| 24 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception
else | 24 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception
else |
| 25 'WrapperTypeObjectPrototype' %} | 25 'WrapperTypeObjectPrototype' %} |
| 26 | 26 |
| 27 const WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin::kEmbedderBlink, {{v
8_class}}::domTemplate, {{v8_class}}::refObject, {{v8_class}}::derefObject, {{v8
_class}}::createPersistentHandle, {{to_active_dom_object}}, {{to_event_target}},
{{visit_dom_wrapper}}, {{v8_class}}::installConditionallyEnabledMethods, {{v8_c
lass}}::installConditionallyEnabledProperties, {{parent_wrapper_type_info}}, Wra
pperTypeInfo::{{wrapper_type_prototype}}, WrapperTypeInfo::{{wrapper_class_id}},
WrapperTypeInfo::{{lifetime}}, WrapperTypeInfo::{{gc_type}} }; | 27 const WrapperTypeInfo {{v8_class}}::wrapperTypeInfo = { gin::kEmbedderBlink, {{v
8_class}}::domTemplate, {{v8_class}}::refObject, {{v8_class}}::derefObject, {{v8
_class}}::trace, {{to_active_dom_object}}, {{to_event_target}}, {{visit_dom_wrap
per}}, {{v8_class}}::installConditionallyEnabledMethods, {{v8_class}}::installCo
nditionallyEnabledProperties, {{parent_wrapper_type_info}}, WrapperTypeInfo::{{w
rapper_type_prototype}}, WrapperTypeInfo::{{wrapper_class_id}}, WrapperTypeInfo:
:{{lifetime}}, WrapperTypeInfo::{{gc_type}} }; |
| 28 | 28 |
| 29 {% if is_script_wrappable %} | 29 {% if is_script_wrappable %} |
| 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 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
ypeInfo; | 33 const WrapperTypeInfo& {{cpp_class}}::s_wrapperTypeInfo = {{v8_class}}::wrapperT
ypeInfo; |
| 34 | 34 |
| 35 {% endif %} | 35 {% endif %} |
| 36 namespace {{cpp_class}}V8Internal { | 36 namespace {{cpp_class}}V8Internal { |
| 37 | 37 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 {{method_implemented_in_private_script(method)}} | 458 {{method_implemented_in_private_script(method)}} |
| 459 {% endfor %} | 459 {% endfor %} |
| 460 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 460 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 461 {{attribute_getter_implemented_in_private_script(attribute)}} | 461 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 462 {% if not attribute.is_read_only or attribute.put_forwards %} | 462 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 463 {{attribute_setter_implemented_in_private_script(attribute)}} | 463 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 464 {% endif %} | 464 {% endif %} |
| 465 {% endfor %} | 465 {% endfor %} |
| 466 } // namespace blink | 466 } // namespace blink |
| 467 {% endfilter %} | 467 {% endfilter %} |
| OLD | NEW |