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

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

Issue 26645002: IDL compiler: [DoNotCheckSecurity], [DoNotCheckSecurityOnGetter], [DoNotCheckSecurityOnSetter] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert Perl 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
OLDNEW
1 {% extends 'interface_base.cpp' %} 1 {% extends 'interface_base.cpp' %}
2 2
3 3
4 {##############################################################################} 4 {##############################################################################}
5 {% block class_attributes %} 5 {% block class_attributes %}
6 {# FIXME: rename to install_attributes and put into configure_class_template #} 6 {# FIXME: rename to install_attributes and put into configure_class_template #}
7 {% if attributes %} 7 {% if attributes %}
8 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu tes[] = { 8 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu tes[] = {
9 {% for attribute in attributes if not attribute.is_static %} 9 {% for attribute in attributes if not attribute.is_static %}
10 {% filter conditional(attribute.conditional_string) %} 10 {% filter conditional(attribute.conditional_string) %}
11 {"{{attribute.name}}", {{cpp_class_name}}V8Internal::{{attribute.name}}Attri buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta tic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 11 {"{{attribute.name}}", {{cpp_class_name}}V8Internal::{{attribute.name}}Attri buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>({{attribute.acces s_control_list | join(' | ')}}), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
12 {% endfilter %} 12 {% endfilter %}
13 {% endfor %} 13 {% endfor %}
14 }; 14 };
15 15
16 {% endif %} 16 {% endif %}
17 {% endblock %} 17 {% endblock %}
18 18
19 19
20 {##############################################################################} 20 {##############################################################################}
21 {% block configure_class_template %} 21 {% block configure_class_template %}
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra pper, isolate, WrapperConfiguration::Independent); 135 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra pper, isolate, WrapperConfiguration::Independent);
136 return wrapper; 136 return wrapper;
137 } 137 }
138 138
139 void {{v8_class_name}}::derefObject(void* object) 139 void {{v8_class_name}}::derefObject(void* object)
140 { 140 {
141 fromInternalPointer(object)->deref(); 141 fromInternalPointer(object)->deref();
142 } 142 }
143 143
144 {% endblock %} 144 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_attributes.py ('k') | Source/bindings/tests/idls/TestObjectPython.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698