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

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

Issue 131183002: IDL compiler: AudioBuffer interfaces (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('j') | Source/bindings/templates/interface.cpp » ('J')
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 a70fea8c0076195d415e64cab6f555644fde8218..50d8b76bf7cd10b7de55480da8af8ced841df9ef 100644
--- a/Source/bindings/scripts/unstable/v8_interface.py
+++ b/Source/bindings/scripts/unstable/v8_interface.py
@@ -69,6 +69,10 @@ def generate_interface(interface):
header_includes.update(v8_types.includes_for_type(parent_interface))
extended_attributes = interface.extended_attributes
+ is_audio_buffer = inherits_interface(interface, 'AudioBuffer')
+ if is_audio_buffer:
+ includes.add('modules/webaudio/AudioBuffer.h')
+
# [CheckSecurity]
is_check_security = 'CheckSecurity' in extended_attributes
if is_check_security:
@@ -152,6 +156,7 @@ def generate_interface(interface):
interface_length(interface, constructors + custom_constructors),
'interface_name': interface.name,
'is_active_dom_object': 'ActiveDOMObject' in extended_attributes, # [ActiveDOMObject]
+ 'is_audio_buffer': is_audio_buffer,
'is_check_security': is_check_security,
'is_constructor_call_with_document': has_extended_attribute_value(
interface, 'ConstructorCallWith', 'Document'), # [ConstructorCallWith=Document]
« no previous file with comments | « no previous file | Source/bindings/templates/interface.cpp » ('j') | Source/bindings/templates/interface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698