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

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

Issue 793243004: IDL: Properly support [Exposed] on static methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/templates/interface_base.cpp
diff --git a/Source/bindings/templates/interface_base.cpp b/Source/bindings/templates/interface_base.cpp
index b1f61d0531e2e27d908f01df42bca1906bf46659..231545797c6fbdae7e1e83524987eaf3e456c8ab 100644
--- a/Source/bindings/templates/interface_base.cpp
+++ b/Source/bindings/templates/interface_base.cpp
@@ -393,6 +393,12 @@ static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> functio
{% for method in custom_registration_methods %}
{# install_custom_signature #}
{% filter conditional(method.conditional_string) %}
+ {% filter per_context_enabled(method.overloads.per_context_enabled_function_all
+ if method.overloads else
+ method.per_context_enabled_function) %}
+ {% filter exposed(method.overloads.exposed_test_all
+ if method.overloads else
+ method.exposed_test) %}
{% filter runtime_enabled(method.overloads.runtime_enabled_function_all
if method.overloads else
method.runtime_enabled_function) %}
@@ -402,6 +408,8 @@ static void install{{v8_class}}Template(v8::Handle<v8::FunctionTemplate> functio
{{install_custom_signature(method) | indent}}
{% endif %}{# is_do_not_check_security #}
{% endfilter %}{# runtime_enabled() #}
+ {% endfilter %}{# exposed() #}
+ {% endfilter %}{# per_context_enabled() #}
{% endfilter %}{# conditional() #}
{% endfor %}
{% for attribute in attributes if attribute.is_static %}
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698