Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 {% filter conditional(conditional_string) %} | 8 {% filter conditional(conditional_string) %} |
| 9 #include "{{v8_class_or_partial}}.h" | 9 #include "{{v8_class_or_partial}}.h" |
| 10 | 10 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 461 | 461 |
| 462 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); | 462 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
| 463 functionTemplate->SetHiddenPrototype(true); | 463 functionTemplate->SetHiddenPrototype(true); |
| 464 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); | 464 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
| 465 {% elif interface_name in [ | 465 {% elif interface_name in [ |
| 466 'HTMLDocument', 'DedicatedWorkerGlobalScope', | 466 'HTMLDocument', 'DedicatedWorkerGlobalScope', |
| 467 'SharedWorkerGlobalScope', 'ServiceWorkerGlobalScope'] %} | 467 'SharedWorkerGlobalScope', 'ServiceWorkerGlobalScope'] %} |
| 468 functionTemplate->SetHiddenPrototype(true); | 468 functionTemplate->SetHiddenPrototype(true); |
| 469 {% endif %} | 469 {% endif %} |
| 470 | 470 |
| 471 {# WebIDL 4.7: | |
| 472 The class string of a platform object that implements | |
| 473 one or more interfaces must be the identifier of the | |
| 474 primary interface of the platform object. #} | |
| 475 instanceTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(is olate, "{{interface_name}}")); | |
|
haraken
2015/03/19 23:30:56
Just to confirm: What is the interface_name of Web
| |
| 476 | |
| 477 {# WebIDL 4.5.4: | |
| 478 The class string of an interface prototype object is the | |
| 479 concatenation of the interface’s identifier and the string | |
| 480 "Prototype". #} | |
| 481 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i solate, "{{interface_name}}Prototype")); | |
| 482 | |
| 471 // Custom toString template | 483 // Custom toString template |
| 472 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); | 484 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); |
| 473 {% endif %} | 485 {% endif %} |
| 474 } | 486 } |
| 475 | 487 |
| 476 {% endif %}{# not is_array_buffer_or_view #} | 488 {% endif %}{# not is_array_buffer_or_view #} |
| 477 {% endblock %} | 489 {% endblock %} |
| 478 {##############################################################################} | 490 {##############################################################################} |
| 479 {% block get_dom_template %}{% endblock %} | 491 {% block get_dom_template %}{% endblock %} |
| 480 {% block has_instance %}{% endblock %} | 492 {% block has_instance %}{% endblock %} |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 499 {% endfor %} | 511 {% endfor %} |
| 500 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 512 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 501 {{attribute_getter_implemented_in_private_script(attribute)}} | 513 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 502 {% if attribute.has_setter %} | 514 {% if attribute.has_setter %} |
| 503 {{attribute_setter_implemented_in_private_script(attribute)}} | 515 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 504 {% endif %} | 516 {% endif %} |
| 505 {% endfor %} | 517 {% endfor %} |
| 506 {% block partial_interface %}{% endblock %} | 518 {% block partial_interface %}{% endblock %} |
| 507 } // namespace blink | 519 } // namespace blink |
| 508 {% endfilter %} | 520 {% endfilter %} |
| OLD | NEW |