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

Unified Diff: Source/bindings/scripts/unstable/v8_interface.py

Issue 59853010: IDL compiler: [PerContextEnabled] methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/unstable/v8_interface.py
diff --git a/Source/bindings/scripts/unstable/v8_interface.py b/Source/bindings/scripts/unstable/v8_interface.py
index b326968d4f4ba5b9376506f375c11a1902dcfcd4..d3ab093f99695ee410728fac60db4347ed55ddba 100644
--- a/Source/bindings/scripts/unstable/v8_interface.py
+++ b/Source/bindings/scripts/unstable/v8_interface.py
@@ -87,8 +87,13 @@ def generate_interface(interface):
'has_runtime_enabled_attributes': any(attribute['runtime_enabled_function_name'] for attribute in attributes),
})
- template_contents['methods'] = [v8_methods.generate_method(interface, method)
- for method in interface.operations]
+ methods = [v8_methods.generate_method(interface, method)
+ for method in interface.operations]
+ template_contents.update({
+ 'has_non_per_context_enabled_methods': any(not method['per_context_enabled_function_name'] for method in methods),
+ 'has_per_context_enabled_methods': any(method['per_context_enabled_function_name'] for method in methods),
+ 'methods': methods,
+ })
return template_contents
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/v8_methods.py » ('j') | Source/bindings/templates/interface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698