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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface_base.cpp.tmpl

Issue 2385073002: HTMLConstructor implementation (Closed)
Patch Set: Renamed V8HTMLElement constructor to HTMLConstructor Created 4 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
OLDNEW
1 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
4 #include "{{v8_class_or_partial}}.h" 4 #include "{{v8_class_or_partial}}.h"
5 5
6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %}
7 #include "{{filename}}" 7 #include "{{filename}}"
8 {% endfor %} 8 {% endfor %}
9 9
10 namespace blink { 10 namespace blink {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 {% if is_partial %} 276 {% if is_partial %}
277 {{v8_class}}::install{{v8_class}}Template(isolate, world, interfaceTemplate) ; 277 {{v8_class}}::install{{v8_class}}Template(isolate, world, interfaceTemplate) ;
278 {% else %} 278 {% else %}
279 {% set parent_interface_template = 279 {% set parent_interface_template =
280 '%s::domTemplateForNamedPropertiesObject(isolate, world)' % v8_class 280 '%s::domTemplateForNamedPropertiesObject(isolate, world)' % v8_class
281 if has_named_properties_object else 281 if has_named_properties_object else
282 'V8%s::domTemplate(isolate, world)' % parent_interface 282 'V8%s::domTemplate(isolate, world)' % parent_interface
283 if parent_interface else 283 if parent_interface else
284 'v8::Local<v8::FunctionTemplate>()' %} 284 'v8::Local<v8::FunctionTemplate>()' %}
285 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat e, {{v8_class}}::wrapperTypeInfo.interfaceName, {{parent_interface_template}}, { {v8_class}}::internalFieldCount); 285 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat e, {{v8_class}}::wrapperTypeInfo.interfaceName, {{parent_interface_template}}, { {v8_class}}::internalFieldCount);
286 {% if constructors or has_custom_constructor or has_event_constructor %} 286 {% if constructors or has_custom_constructor or has_event_constructor or has _html_constructor %}
287 interfaceTemplate->SetCallHandler({{v8_class}}::constructorCallback); 287 interfaceTemplate->SetCallHandler({{v8_class}}::constructorCallback);
288 interfaceTemplate->SetLength({{interface_length}}); 288 interfaceTemplate->SetLength({{interface_length}});
289 {% endif %} 289 {% endif %}
290 {% endif %}{# is_partial #} 290 {% endif %}{# is_partial #}
291 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate); 291 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe mplate);
292 ALLOW_UNUSED_LOCAL(signature); 292 ALLOW_UNUSED_LOCAL(signature);
293 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance Template(); 293 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance Template();
294 ALLOW_UNUSED_LOCAL(instanceTemplate); 294 ALLOW_UNUSED_LOCAL(instanceTemplate);
295 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy peTemplate(); 295 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy peTemplate();
296 ALLOW_UNUSED_LOCAL(prototypeTemplate); 296 ALLOW_UNUSED_LOCAL(prototypeTemplate);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 462 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
463 {{attribute_getter_implemented_in_private_script(attribute)}} 463 {{attribute_getter_implemented_in_private_script(attribute)}}
464 {% if attribute.has_setter %} 464 {% if attribute.has_setter %}
465 {{attribute_setter_implemented_in_private_script(attribute)}} 465 {{attribute_setter_implemented_in_private_script(attribute)}}
466 {% endif %} 466 {% endif %}
467 {% endfor %} 467 {% endfor %}
468 {% block partial_interface %}{% endblock %} 468 {% block partial_interface %}{% endblock %}
469 } // namespace blink 469 } // namespace blink
470 470
471 {% endfilter %}{# format_blink_cpp_source_code #} 471 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/templates/interface.h.tmpl ('k') | third_party/WebKit/Source/core/html/HTMLElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698