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

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

Issue 290333008: Oilpan: add [WillBeGarbageCollected] for Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + remove WebNode FIXME Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/bindings/tests/idls/TestInterfaceWillBeGarbageCollected.idl » ('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 {% 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 ('%sV8Internal::%sConstructorGetterCallback' % 10 ('%sV8Internal::%sConstructorGetterCallback' %
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 555
556 556
557 {##############################################################################} 557 {##############################################################################}
558 {% from 'methods.cpp' import named_constructor_callback with context %} 558 {% from 'methods.cpp' import named_constructor_callback with context %}
559 {% block named_constructor %} 559 {% block named_constructor %}
560 {% if named_constructor %} 560 {% if named_constructor %}
561 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class 561 {% set to_active_dom_object = '%s::toActiveDOMObject' % v8_class
562 if is_active_dom_object else '0' %} 562 if is_active_dom_object else '0' %}
563 {% set to_event_target = '%s::toEventTarget' % v8_class 563 {% set to_event_target = '%s::toEventTarget' % v8_class
564 if is_event_target else '0' %} 564 if is_event_target else '0' %}
565 const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedde rBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::derefObject, {{to_ac tive_dom_object}}, {{to_event_target}}, 0, {{v8_class}}::installPerContextEnable dMethods, 0, WrapperTypeObjectPrototype, RefCountedObject }; 565 const WrapperTypeInfo {{v8_class}}Constructor::wrapperTypeInfo = { gin::kEmbedde rBlink, {{v8_class}}Constructor::domTemplate, {{v8_class}}::derefObject, {{to_ac tive_dom_object}}, {{to_event_target}}, 0, {{v8_class}}::installPerContextEnable dMethods, 0, WrapperTypeObjectPrototype, {{gc_type}} };
566 566
567 {{named_constructor_callback(named_constructor)}} 567 {{named_constructor_callback(named_constructor)}}
568 v8::Handle<v8::FunctionTemplate> {{v8_class}}Constructor::domTemplate(v8::Isolat e* isolate) 568 v8::Handle<v8::FunctionTemplate> {{v8_class}}Constructor::domTemplate(v8::Isolat e* isolate)
569 { 569 {
570 static int domTemplateKey; // This address is used for a key to look up the dom template. 570 static int domTemplateKey; // This address is used for a key to look up the dom template.
571 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 571 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
572 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey); 572 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey);
573 if (!result.IsEmpty()) 573 if (!result.IsEmpty())
574 return result; 574 return result;
575 575
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 {% endif %} 1335 {% endif %}
1336 } 1336 }
1337 1337
1338 template<> 1338 template<>
1339 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 1339 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
1340 { 1340 {
1341 return toV8(impl, creationContext, isolate); 1341 return toV8(impl, creationContext, isolate);
1342 } 1342 }
1343 1343
1344 {% endblock %} 1344 {% endblock %}
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/idls/TestInterfaceWillBeGarbageCollected.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698