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

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

Issue 150883005: IDL compiler: sync Python to r166989 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 {% 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 {% set getter_callback = 6 {% set getter_callback =
7 '%sV8Internal::%sAttributeGetterCallback' % 7 '%sV8Internal::%sAttributeGetterCallback' %
8 (cpp_class, attribute.name) 8 (cpp_class, attribute.name)
9 if not attribute.constructor_type else 9 if not attribute.constructor_type else
10 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class) %} 10 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class) %}
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 } 1285 }
1286 1286
1287 {% endif %} 1287 {% endif %}
1288 {% endblock %} 1288 {% endblock %}
1289 1289
1290 1290
1291 {##############################################################################} 1291 {##############################################################################}
1292 {% block deref_object_and_to_v8_no_inline %} 1292 {% block deref_object_and_to_v8_no_inline %}
1293 void {{v8_class}}::derefObject(void* object) 1293 void {{v8_class}}::derefObject(void* object)
1294 { 1294 {
1295 {% set oilpan_conditional = '!ENABLE(OILPAN)' if is_will_be_garbage_collected
1296 else '' %}
1297 {% filter conditional(oilpan_conditional) %}
1295 fromInternalPointer(object)->deref(); 1298 fromInternalPointer(object)->deref();
1299 {% endfilter %}
1296 } 1300 }
1297 1301
1298 template<> 1302 template<>
1299 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 1303 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
1300 { 1304 {
1301 return toV8(impl, creationContext, isolate); 1305 return toV8(impl, creationContext, isolate);
1302 } 1306 }
1303 1307
1304 {% endblock %} 1308 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestEventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698