Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: Source/bindings/templates/interface_base.cpp

Issue 134683007: IDL compiler: sync Python to r166680 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Order Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class 65 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class
66 if is_active_dom_object else '0' %} 66 if is_active_dom_object else '0' %}
67 {% set to_event_target = '%s::toEventTarget' % v8_class 67 {% set to_event_target = '%s::toEventTarget' % v8_class
68 if is_event_target else '0' %} 68 if is_event_target else '0' %}
69 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class 69 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class
70 if has_visit_dom_wrapper else '0' %} 70 if has_visit_dom_wrapper else '0' %}
71 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface 71 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface
72 if parent_interface else '0' %} 72 if parent_interface else '0' %}
73 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception else 73 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception else
74 'WrapperTypeObjectPrototype' %} 74 'WrapperTypeObjectPrototype' %}
75 {% set garbage_collected = 'true' if is_garbage_collected else 'false' %} 75 {% set will_be_garbage_collected = 'true'
76 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}}, {{garbage_coll ected}} }; 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 78
78 namespace {{cpp_class}}V8Internal { 79 namespace {{cpp_class}}V8Internal {
79 80
80 template <typename T> void V8_USE(T) { } 81 template <typename T> void V8_USE(T) { }
81 82
82 {# Attributes #} 83 {# Attributes #}
83 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, 84 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback,
84 attribute_setter, attribute_setter_callback 85 attribute_setter, attribute_setter_callback
85 with context %} 86 with context %}
86 {% for attribute in attributes if not attribute.constructor_type %} 87 {% for attribute in attributes if not attribute.constructor_type %}
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 {% block install_per_context_attributes %}{% endblock %} 163 {% block install_per_context_attributes %}{% endblock %}
163 {% block install_per_context_methods %}{% endblock %} 164 {% block install_per_context_methods %}{% endblock %}
164 {% block to_active_dom_object %}{% endblock %} 165 {% block to_active_dom_object %}{% endblock %}
165 {% block to_event_target %}{% endblock %} 166 {% block to_event_target %}{% endblock %}
166 {% block get_shadow_object_template %}{% endblock %} 167 {% block get_shadow_object_template %}{% endblock %}
167 {% block wrap %}{% endblock %} 168 {% block wrap %}{% endblock %}
168 {% block create_wrapper %}{% endblock %} 169 {% block create_wrapper %}{% endblock %}
169 {% block deref_object_and_to_v8_no_inline %}{% endblock %} 170 {% block deref_object_and_to_v8_no_inline %}{% endblock %}
170 } // namespace WebCore 171 } // namespace WebCore
171 {% endfilter %} 172 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.h ('k') | Source/bindings/tests/idls/TestInterfaceGarbageCollected.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698