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

Unified Diff: sdk/lib/html/scripts/systemhtml.py

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding missing lib registrations Created 8 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
« no previous file with comments | « sdk/lib/html/scripts/htmlrenamer.py ('k') | sdk/lib/html/src/dart2js_FactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « sdk/lib/html/scripts/htmlrenamer.py ('k') | sdk/lib/html/src/dart2js_FactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698