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

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

Issue 102143003: IDL compiler: [ImplementedAs] for [InitializedByEventConstructor] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged Created 7 years 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 (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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 {% endif %} 290 {% endif %}
291 {% for attribute in attributes 291 {% for attribute in attributes
292 if (attribute.is_initialized_by_event_constructor and 292 if (attribute.is_initialized_by_event_constructor and
293 not attribute.idl_type == 'any')%} 293 not attribute.idl_type == 'any')%}
294 {# FIXME: implement [ImplementedAs] #} 294 {# FIXME: implement [ImplementedAs] #}
295 {# FIXME: implement [DeprecateAs] #} 295 {# FIXME: implement [DeprecateAs] #}
296 {# FIXME: special-case any #} 296 {# FIXME: special-case any #}
297 {# FIXME: implement withPropertyAttributes #} 297 {# FIXME: implement withPropertyAttributes #}
298 {% if attribute.deprecate_as %} 298 {% if attribute.deprecate_as %}
299 if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{att ribute.name}})) { 299 if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{att ribute.cpp_name}})) {
300 if (options.hasProperty("{{attribute.name}}")) 300 if (options.hasProperty("{{attribute.name}}"))
301 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{ {attribute.deprecate_as}}); 301 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{ {attribute.deprecate_as}});
302 } else { 302 } else {
303 return false; 303 return false;
304 } 304 }
305 {% else %} 305 {% else %}
306 if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{at tribute.name}})) 306 if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{at tribute.cpp_name}}))
307 return false; 307 return false;
308 {% endif %} 308 {% endif %}
309 {% endfor %} 309 {% endfor %}
310 return true; 310 return true;
311 } 311 }
312 312
313 {% endif %} 313 {% endif %}
314 {% endblock %} 314 {% endblock %}
315 315
316 316
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 fromInternalPointer(object)->deref(); 666 fromInternalPointer(object)->deref();
667 } 667 }
668 668
669 template<> 669 template<>
670 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 670 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
671 { 671 {
672 return toV8(impl, creationContext, isolate); 672 return toV8(impl, creationContext, isolate);
673 } 673 }
674 674
675 {% endblock %} 675 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_attributes.py ('k') | Source/bindings/tests/idls/TestInterfaceEventConstructor.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698