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

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

Issue 1760143003: bindings: Remove the hidden prototype from HTMLDocument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% include 'copyright_block.txt' %} 1 {% include 'copyright_block.txt' %}
2 #include "{{v8_class_or_partial}}.h" 2 #include "{{v8_class_or_partial}}.h"
3 3
4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} 4 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %}
5 #include "{{filename}}" 5 #include "{{filename}}"
6 {% endfor %} 6 {% endfor %}
7 7
8 namespace blink { 8 namespace blink {
9 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class 9 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class
10 if has_visit_dom_wrapper else '0' %} 10 if has_visit_dom_wrapper else '0' %}
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ALLOW_UNUSED_LOCAL(signature); 294 ALLOW_UNUSED_LOCAL(signature);
295 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance Template(); 295 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->Instance Template();
296 ALLOW_UNUSED_LOCAL(instanceTemplate); 296 ALLOW_UNUSED_LOCAL(instanceTemplate);
297 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy peTemplate(); 297 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototy peTemplate();
298 ALLOW_UNUSED_LOCAL(prototypeTemplate); 298 ALLOW_UNUSED_LOCAL(prototypeTemplate);
299 299
300 {%- if not is_partial %} 300 {%- if not is_partial %}
301 {% if interface_name == 'Window' %}{{newline}} 301 {% if interface_name == 'Window' %}{{newline}}
302 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); 302 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
303 {% endif %} 303 {% endif %}
304 {% if is_global or interface_name == 'HTMLDocument' %}{{newline}} 304 {% if is_global %}{{newline}}
305 interfaceTemplate->SetHiddenPrototype(true); 305 interfaceTemplate->SetHiddenPrototype(true);
306 {% endif %} 306 {% endif %}
307 {% endif %} 307 {% endif %}
308 308
309 // Register DOM constants, attributes and operations. 309 // Register DOM constants, attributes and operations.
310 {% if runtime_enabled_function %} 310 {% if runtime_enabled_function %}
311 if ({{runtime_enabled_function}}()) { 311 if ({{runtime_enabled_function}}()) {
312 {% endif %} 312 {% endif %}
313 {% filter indent(4 if runtime_enabled_function else 0, true) %} 313 {% filter indent(4 if runtime_enabled_function else 0, true) %}
314 {% if constants %} 314 {% if constants %}
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 {{method_implemented_in_private_script(method)}} 438 {{method_implemented_in_private_script(method)}}
439 {% endfor %} 439 {% endfor %}
440 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 440 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
441 {{attribute_getter_implemented_in_private_script(attribute)}} 441 {{attribute_getter_implemented_in_private_script(attribute)}}
442 {% if attribute.has_setter %} 442 {% if attribute.has_setter %}
443 {{attribute_setter_implemented_in_private_script(attribute)}} 443 {{attribute_setter_implemented_in_private_script(attribute)}}
444 {% endif %} 444 {% endif %}
445 {% endfor %} 445 {% endfor %}
446 {% block partial_interface %}{% endblock %} 446 {% block partial_interface %}{% endblock %}
447 } // namespace blink 447 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698