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

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

Issue 27638002: IDL compiler: Basic setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ; 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.h ('k') | Source/bindings/templates/interface_base.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 {% extends 'interface_base.cpp' %} 1 {% extends 'interface_base.cpp' %}
2 2
3 3
4 {##############################################################################} 4 {##############################################################################}
5 {% macro attribute_configuration(attribute) %} 5 {% macro attribute_configuration(attribute) %}
6 {"{{attribute.name}}", {{cpp_class_name}}V8Internal::{{attribute.name}}Attribute GetterCallback, 0, {{attribute.getter_for_main_world}}, 0, 0, static_cast<v8::Ac cessControl>({{attribute.access_control_list | join(' | ')}}), static_cast<v8::P ropertyAttribute>({{attribute.property_attributes | join(' | ')}}), 0 /* on inst ance */}{% endmacro %} 6 {"{{attribute.name}}", {{attribute.getter_callback_name}}, {{attribute.setter_ca llback_name}}, {{attribute.getter_callback_name_for_main_world}}, {{attribute.se tter_callback_name_for_main_world}}, 0, static_cast<v8::AccessControl>({{attribu te.access_control_list | join(' | ')}}), static_cast<v8::PropertyAttribute>({{at tribute.property_attributes | join(' | ')}}), 0 /* on instance */}{% endmacro %}
7 7
8 8
9 {##############################################################################} 9 {##############################################################################}
10 {% block class_attributes %} 10 {% block class_attributes %}
11 {# FIXME: rename to install_attributes and put into configure_class_template #} 11 {# FIXME: rename to install_attributes and put into configure_class_template #}
12 {% if attributes %} 12 {% if attributes %}
13 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu tes[] = { 13 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu tes[] = {
14 {% for attribute in attributes 14 {% for attribute in attributes
15 if not (attribute.runtime_enabled_function_name or 15 if not (attribute.runtime_enabled_function_name or
16 attribute.per_context_enabled_function_name or 16 attribute.per_context_enabled_function_name or
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra pper, isolate, WrapperConfiguration::Independent); 171 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra pper, isolate, WrapperConfiguration::Independent);
172 return wrapper; 172 return wrapper;
173 } 173 }
174 174
175 void {{v8_class_name}}::derefObject(void* object) 175 void {{v8_class_name}}::derefObject(void* object)
176 { 176 {
177 fromInternalPointer(object)->deref(); 177 fromInternalPointer(object)->deref();
178 } 178 }
179 179
180 {% endblock %} 180 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface.h ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698