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/scripts/unstable/v8_interface.py

Issue 99123003: IDL compiler: [SpecialWrapFor] interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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 | « no previous file | Source/bindings/templates/interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fe1a7e21840c9993a633fc62c0434ac0353aa625..af6152919294ef0ef6d12244c9610c52a7328100 100644
--- a/Source/bindings/scripts/unstable/v8_interface.py
+++ b/Source/bindings/scripts/unstable/v8_interface.py
@@ -78,6 +78,14 @@ def generate_interface(interface):
includes.update(['bindings/v8/V8GCController.h',
'core/dom/Element.h'])
+ # [SpecialWrapFor]
+ if 'SpecialWrapFor' in extended_attributes:
+ special_wrap_for = extended_attributes['SpecialWrapFor'].split('|')
+ else:
+ special_wrap_for = []
+ for special_wrap_interface in special_wrap_for:
+ v8_types.add_includes_for_type(special_wrap_interface)
+
template_contents = {
'conditional_string': conditional_string(interface), # [Conditional]
'cpp_class': cpp_name(interface),
@@ -93,6 +101,7 @@ def generate_interface(interface):
'is_check_security': is_check_security,
'is_dependent_lifetime': 'DependentLifetime' in extended_attributes, # [DependentLifetime]
'runtime_enabled_function': runtime_enabled_function_name(interface), # [RuntimeEnabled]
+ 'special_wrap_for': special_wrap_for,
'v8_class': v8_utilities.v8_class_name(interface),
}
« no previous file with comments | « no previous file | Source/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698