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

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

Issue 39493002: IDL compiler: void() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 2 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
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {# FIXME: update copyright and license header #} 1 {# FIXME: update copyright and license header #}
2 /* 2 /*
3 This file is part of the Blink open source project. 3 This file is part of the Blink open source project.
4 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 4 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
5 5
6 This library is free software; you can redistribute it and/or 6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public 7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either 8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version. 9 version 2 of the License, or (at your option) any later version.
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 WebCore::initializeScriptWrappableForInterface(object); 50 WebCore::initializeScriptWrappableForInterface(object);
51 } 51 }
52 52
53 namespace WebCore { 53 namespace WebCore {
54 const WrapperTypeInfo {{v8_class_name}}::wrapperTypeInfo = { {{v8_class_name}}:: GetTemplate, {{v8_class_name}}::derefObject, 0, 0, 0, {{v8_class_name}}::install PerContextEnabledPrototypeProperties, 0, WrapperTypeObjectPrototype }; 54 const WrapperTypeInfo {{v8_class_name}}::wrapperTypeInfo = { {{v8_class_name}}:: GetTemplate, {{v8_class_name}}::derefObject, 0, 0, 0, {{v8_class_name}}::install PerContextEnabledPrototypeProperties, 0, WrapperTypeObjectPrototype };
55 55
56 namespace {{cpp_class_name}}V8Internal { 56 namespace {{cpp_class_name}}V8Internal {
57 57
58 template <typename T> void V8_USE(T) { } 58 template <typename T> void V8_USE(T) { }
59 59
60 {# Attributes #}
60 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, 61 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback,
61 attribute_setter, attribute_setter_callback 62 attribute_setter, attribute_setter_callback
62 with context %} 63 with context %}
63 {% for attribute in attributes if not attribute.is_constructor %} 64 {% for attribute in attributes if not attribute.is_constructor %}
64 {% for world_suffix in attribute.world_suffixes %} 65 {% for world_suffix in attribute.world_suffixes %}
65 {% if not attribute.has_custom_getter %} 66 {% if not attribute.has_custom_getter %}
66 {{attribute_getter(attribute, world_suffix)}} 67 {{attribute_getter(attribute, world_suffix)}}
67 {% endif %} 68 {% endif %}
68 {{attribute_getter_callback(attribute, world_suffix)}} 69 {{attribute_getter_callback(attribute, world_suffix)}}
69 {% if not attribute.is_read_only %} 70 {% if not attribute.is_read_only %}
70 {% if not attribute.has_custom_setter %} 71 {% if not attribute.has_custom_setter %}
71 {{attribute_setter(attribute, world_suffix)}} 72 {{attribute_setter(attribute, world_suffix)}}
72 {% endif %} 73 {% endif %}
73 {{attribute_setter_callback(attribute, world_suffix)}} 74 {{attribute_setter_callback(attribute, world_suffix)}}
74 {% endif %} 75 {% endif %}
75 {% endfor %} 76 {% endfor %}
76 {% endfor %} 77 {% endfor %}
77 {% block constructor_getter %}{% endblock %} 78 {% block constructor_getter %}{% endblock %}
78 {% block replaceable_attribute_setter_and_callback %}{% endblock %} 79 {% block replaceable_attribute_setter_and_callback %}{% endblock %}
80 {# Methods #}
81 {% from 'methods.cpp' import generate_method, method_callback with context %}
82 {% for method in methods %}
83 {{generate_method(method)}}
84 {{method_callback(method)}}
85 {% endfor %}
79 } // namespace {{cpp_class_name}}V8Internal 86 } // namespace {{cpp_class_name}}V8Internal
80 87
81 {% block class_attributes %}{% endblock %} 88 {% block class_attributes %}{% endblock %}
89 {% block class_methods %}{% endblock %}
82 {% block configure_class_template %}{% endblock %} 90 {% block configure_class_template %}{% endblock %}
83 {% block get_template %}{% endblock %} 91 {% block get_template %}{% endblock %}
84 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} 92 {% block has_instance_and_has_instance_in_any_world %}{% endblock %}
85 {% block install_per_context_attributes %}{% endblock %} 93 {% block install_per_context_attributes %}{% endblock %}
86 {% block create_wrapper_and_deref_object %}{% endblock %} 94 {% block create_wrapper_and_deref_object %}{% endblock %}
87 } // namespace WebCore 95 } // namespace WebCore
88 {% if conditional_string %} 96 {% if conditional_string %}
89 97
90 #endif // {{conditional_string}} 98 #endif // {{conditional_string}}
91 {% endif %} 99 {% endif %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.cpp ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698