Index: sdk/lib/html/scripts/systemhtml.py |
diff --git a/sdk/lib/html/scripts/systemhtml.py b/sdk/lib/html/scripts/systemhtml.py |
index 38ad58ca24f3460238cac30bceca0ab11fe19ae8..9c4e1de181516842fc31f3364da265b7b2a6f46c 100644 |
--- a/sdk/lib/html/scripts/systemhtml.py |
+++ b/sdk/lib/html/scripts/systemhtml.py |
@@ -202,7 +202,8 @@ _svg_element_constructors = { |
_element_constructors = { |
'html': _html_element_constructors, |
- 'svg': _svg_element_constructors |
+ 'svg': _svg_element_constructors, |
+ 'web_audio': {}, |
} |
_factory_ctr_strings = { |
@@ -214,6 +215,10 @@ _factory_ctr_strings = { |
'provider_name': '_SvgElementFactoryProvider', |
'constructor_name': 'createSvgElement_tag', |
}, |
+ 'web_audio': { |
+ 'provider_name': 'document', |
+ 'constructor_name': '$dom_createElement' |
+ }, |
} |
def ElementConstructorInfos(typename, element_constructors, |
@@ -985,11 +990,11 @@ class DartLibrary(): |
# ------------------------------------------------------------------------------ |
class DartLibraries(): |
- def __init__(self, template_loader, library_type, output_dir): |
- self._libraries = { |
- 'svg': DartLibrary('svg', template_loader, library_type, output_dir), |
- 'html': DartLibrary('html', template_loader, library_type, output_dir), |
- } |
+ def __init__(self, libraries, template_loader, library_type, output_dir): |
+ self._libraries = {} |
+ for library_name in libraries: |
+ self._libraries[library_name] = DartLibrary( |
+ library_name, template_loader, library_type, output_dir) |
def AddFile(self, basename, library_name, path): |
self._libraries[library_name].AddFile(path) |