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

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

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 1 month 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
« no previous file with comments | « Source/bindings/scripts/v8_utilities.py ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 {% if interface_name == 'Window' %} 419 {% if interface_name == 'Window' %}
420 420
421 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); 421 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
422 functionTemplate->SetHiddenPrototype(true); 422 functionTemplate->SetHiddenPrototype(true);
423 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); 423 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount);
424 // Set access check callbacks, but turned off initially. 424 // Set access check callbacks, but turned off initially.
425 // When a context is detached from a frame, turn on the access check. 425 // When a context is detached from a frame, turn on the access check.
426 // Turning on checks also invalidates inline caches of the object. 426 // Turning on checks also invalidates inline caches of the object.
427 instanceTemplate->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom , V8Window::indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<Wr apperTypeInfo*>(&V8Window::wrapperTypeInfo)), false); 427 instanceTemplate->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom , V8Window::indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<Wr apperTypeInfo*>(&V8Window::wrapperTypeInfo)), false);
428 {% elif interface_name in [ 428 {% elif interface_name in [
429 'HTMLDocument', 'DedicatedWorkerGlobalScope', 429 'HTMLDocument', 'DedicatedWorkerGlobalScope', 'UIWorkerGlobalScope',
430 'SharedWorkerGlobalScope', 'ServiceWorkerGlobalScope'] %} 430 'SharedWorkerGlobalScope', 'ServiceWorkerGlobalScope'] %}
431 functionTemplate->SetHiddenPrototype(true); 431 functionTemplate->SetHiddenPrototype(true);
432 {% endif %} 432 {% endif %}
433 433
434 // Custom toString template 434 // Custom toString template
435 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 435 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
436 {% endif %} 436 {% endif %}
437 } 437 }
438 438
439 {% endif %}{# not is_array_buffer_or_view #} 439 {% endif %}{# not is_array_buffer_or_view #}
(...skipping 25 matching lines...) Expand all
465 {% endfor %} 465 {% endfor %}
466 {% for attribute in attributes if attribute.is_implemented_in_private_script %} 466 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
467 {{attribute_getter_implemented_in_private_script(attribute)}} 467 {{attribute_getter_implemented_in_private_script(attribute)}}
468 {% if not attribute.is_read_only or attribute.put_forwards %} 468 {% if not attribute.is_read_only or attribute.put_forwards %}
469 {{attribute_setter_implemented_in_private_script(attribute)}} 469 {{attribute_setter_implemented_in_private_script(attribute)}}
470 {% endif %} 470 {% endif %}
471 {% endfor %} 471 {% endfor %}
472 {% block partial_interface %}{% endblock %} 472 {% block partial_interface %}{% endblock %}
473 } // namespace blink 473 } // namespace blink
474 {% endfilter %} 474 {% endfilter %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_utilities.py ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698