OLD | NEW |
1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
2 #include "config.h" | 2 #include "config.h" |
3 {% filter conditional(conditional_string) %} | 3 {% filter conditional(conditional_string) %} |
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 Loading... |
276 {% else %} | 276 {% else %} |
277 functionTemplate->ReadOnlyPrototype(); | 277 functionTemplate->ReadOnlyPrototype(); |
278 {% endif %} | 278 {% endif %} |
279 | 279 |
280 v8::Local<v8::Signature> defaultSignature; | 280 v8::Local<v8::Signature> defaultSignature; |
281 {% set parent_template = | 281 {% set parent_template = |
282 'V8%s::domTemplate(isolate)' % parent_interface | 282 'V8%s::domTemplate(isolate)' % parent_interface |
283 if parent_interface else 'v8::Local<v8::FunctionTemplate>()' %} | 283 if parent_interface else 'v8::Local<v8::FunctionTemplate>()' %} |
284 {% if runtime_enabled_function %} | 284 {% if runtime_enabled_function %} |
285 if (!{{runtime_enabled_function}}()) | 285 if (!{{runtime_enabled_function}}()) |
286 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "", {{parent_template}}, {{v8_class}}::internalFieldCount, 0,
0, 0, 0, 0, 0); | 286 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate,
functionTemplate, "{{interface_name}}", {{parent_template}}, {{v8_class}}::inter
nalFieldCount, 0, 0, 0, 0, 0, 0); |
287 else | 287 else |
288 {% endif %} | 288 {% endif %} |
289 {% set runtime_enabled_indent = 4 if runtime_enabled_function else 0 %} | 289 {% set runtime_enabled_indent = 4 if runtime_enabled_function else 0 %} |
290 {% filter indent(runtime_enabled_indent, true) %} | 290 {% filter indent(runtime_enabled_indent, true) %} |
291 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "{{interface_name}}", {{parent_template}}, {{v8_class}}::internalF
ieldCount, | 291 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "{{interface_name}}", {{parent_template}}, {{v8_class}}::internalF
ieldCount, |
292 {# Test needed as size 0 arrays definitions are not allowed per standard | 292 {# Test needed as size 0 arrays definitions are not allowed per standard |
293 (so objects have distinct addresses), which is enforced by MSVC. | 293 (so objects have distinct addresses), which is enforced by MSVC. |
294 8.5.1 Aggregates [dcl.init.aggr] | 294 8.5.1 Aggregates [dcl.init.aggr] |
295 An array of unknown size initialized with a brace-enclosed | 295 An array of unknown size initialized with a brace-enclosed |
296 initializer-list containing n initializer-clauses, where n shall be | 296 initializer-list containing n initializer-clauses, where n shall be |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 {% endfor %} | 487 {% endfor %} |
488 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 488 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
489 {{attribute_getter_implemented_in_private_script(attribute)}} | 489 {{attribute_getter_implemented_in_private_script(attribute)}} |
490 {% if attribute.has_setter %} | 490 {% if attribute.has_setter %} |
491 {{attribute_setter_implemented_in_private_script(attribute)}} | 491 {{attribute_setter_implemented_in_private_script(attribute)}} |
492 {% endif %} | 492 {% endif %} |
493 {% endfor %} | 493 {% endfor %} |
494 {% block partial_interface %}{% endblock %} | 494 {% block partial_interface %}{% endblock %} |
495 } // namespace blink | 495 } // namespace blink |
496 {% endfilter %} | 496 {% endfilter %} |
OLD | NEW |