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

Unified Diff: Source/bindings/templates/interface_base.cpp

Issue 360703003: Implement Blink-in-JS for DOM methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/templates/interface_base.cpp
diff --git a/Source/bindings/templates/interface_base.cpp b/Source/bindings/templates/interface_base.cpp
index dce2cc91b8577df286da5bb2d8f2c8cdb6a756eb..a2e551d3e71991c23725b2b4340588c802571ce3 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -83,10 +83,14 @@ template <typename T> void V8_USE(T) { }
{% block security_check_functions %}{% endblock %}
{# Methods #}
{% from 'methods.cpp' import generate_method, overload_resolution_method,
- method_callback, origin_safe_method_getter, generate_constructor
+ method_callback, origin_safe_method_getter, generate_constructor,
+ method_implemented_in_private_script
with context %}
{% for method in methods %}
{% for world_suffix in method.world_suffixes %}
Jens Widell 2014/06/30 18:32:37 The method_implemented_in_private_script() macro d
haraken 2014/07/01 04:09:55 Good point. I moved method_implemented_in_private_
+{% if method.is_implemented_in_private_script %}
+{{method_implemented_in_private_script(method)}}
+{% endif %}
{% if not method.is_custom %}
{{generate_method(method, world_suffix)}}
{% endif %}

Powered by Google App Engine
This is Rietveld 408576698