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

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

Issue 75933002: IDL compiler: rename object => wrapper in toActiveDOMObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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_name = 6 {% set getter_callback_name =
7 '%sV8Internal::%sAttributeGetterCallback' % 7 '%sV8Internal::%sAttributeGetterCallback' %
8 (interface_name, attribute.name) 8 (interface_name, attribute.name)
9 if not attribute.constructor_type else 9 if not attribute.constructor_type else
10 '{0}V8Internal::{0}ConstructorGetter'.format(interface_name) %} 10 '{0}V8Internal::{0}ConstructorGetter'.format(interface_name) %}
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 {% endfor %} 332 {% endfor %}
333 } 333 }
334 334
335 {% endif %} 335 {% endif %}
336 {% endblock %} 336 {% endblock %}
337 337
338 338
339 {##############################################################################} 339 {##############################################################################}
340 {% block to_active_dom_object %} 340 {% block to_active_dom_object %}
341 {% if is_active_dom_object %} 341 {% if is_active_dom_object %}
342 ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> obj ect) 342 ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> wra pper)
343 { 343 {
344 return toNative(object); 344 return toNative(wrapper);
345 } 345 }
346 346
347 {% endif %} 347 {% endif %}
348 {% endblock %} 348 {% endblock %}
349 349
350 350
351 {##############################################################################} 351 {##############################################################################}
352 {% block create_wrapper_and_deref_object %} 352 {% block create_wrapper_and_deref_object %}
353 v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_n ame}}> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 353 v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_n ame}}> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
354 { 354 {
(...skipping 17 matching lines...) Expand all
372 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &wrapperTy peInfo, wrapper, isolate, {{wrapper_configuration}}); 372 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &wrapperTy peInfo, wrapper, isolate, {{wrapper_configuration}});
373 return wrapper; 373 return wrapper;
374 } 374 }
375 375
376 void {{v8_class_name}}::derefObject(void* object) 376 void {{v8_class_name}}::derefObject(void* object)
377 { 377 {
378 fromInternalPointer(object)->deref(); 378 fromInternalPointer(object)->deref();
379 } 379 }
380 380
381 {% endblock %} 381 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestActiveDOMObjectInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698