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

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

Issue 100473006: IDL compiler: [Constructor] w/o arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced to changes 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 | « Source/bindings/scripts/code_generator_v8.pm ('k') | 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 4862f24fc125b85d7eb1a7038829e2f65c0c7feb..1b34edb89de7efe6c75c1e759f34eb0f79837677 100644
--- a/Source/bindings/scripts/unstable/v8_interface.py
+++ b/Source/bindings/scripts/unstable/v8_interface.py
@@ -72,6 +72,11 @@ def generate_interface(interface):
includes.update(['bindings/v8/BindingSecurity.h',
'bindings/v8/ExceptionState.h'])
+ # [Constructor]
+ has_constructor = 'Constructor' in extended_attributes
+ if has_constructor:
+ includes.add('bindings/v8/V8ObjectConstructor.h')
+
# [GenerateVisitDOMWrapper]
generate_visit_dom_wrapper_function = extended_attributes.get('GenerateVisitDOMWrapper')
if generate_visit_dom_wrapper_function:
@@ -90,6 +95,7 @@ def generate_interface(interface):
'conditional_string': conditional_string(interface), # [Conditional]
'cpp_class': cpp_name(interface),
'generate_visit_dom_wrapper_function': generate_visit_dom_wrapper_function,
+ 'has_constructor': has_constructor,
'has_custom_legacy_call': 'CustomLegacyCall' in extended_attributes, # [CustomLegacyCall]
'has_custom_to_v8': 'CustomToV8' in extended_attributes, # [CustomToV8]
'has_custom_wrap': 'CustomWrap' in extended_attributes, # [CustomWrap]
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/templates/interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698