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

Unified Diff: lib/dom/scripts/systemhtml.py

Issue 10702202: Introduce TypeRegistry class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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
Index: lib/dom/scripts/systemhtml.py
diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
index ff6f4bab07613c919d28048ef5df9f1e3dc22097..4d2015c4f304520db1933fba0d0ebd794a23af5f 100644
--- a/lib/dom/scripts/systemhtml.py
+++ b/lib/dom/scripts/systemhtml.py
@@ -757,21 +757,19 @@ class HtmlSystemShared(object):
return name.startswith('_')
def DartType(self, idl_type):
- type_info = GetIDLTypeInfo(idl_type)
+ type_info = TypeRegistry().TypeInfo(idl_type)
return self._HTMLInterfaceName(type_info.dart_type())
class HtmlSystem(System):
- def __init__(self, templates, database, emitters, output_dir):
- super(HtmlSystem, self).__init__(
- templates, database, emitters, output_dir)
- self._shared = HtmlSystemShared(database)
+ def __init__(self, options):
+ super(HtmlSystem, self).__init__(options)
+ self._shared = HtmlSystemShared(self._database)
class HtmlInterfacesSystem(HtmlSystem):
- def __init__(self, templates, database, emitters, output_dir, backend):
- super(HtmlInterfacesSystem, self).__init__(
- templates, database, emitters, output_dir)
+ def __init__(self, options, backend):
+ super(HtmlInterfacesSystem, self).__init__(options)
self._backend = backend
self._dart_interface_file_paths = []
self._elements_factory_emitter = None
@@ -1356,9 +1354,8 @@ class HtmlFrogClassGenerator(FrogInterfaceGenerator):
class HtmlFrogSystem(HtmlSystem):
- def __init__(self, templates, database, emitters, output_dir):
- super(HtmlFrogSystem, self).__init__(
- templates, database, emitters, output_dir)
+ def __init__(self, options):
+ super(HtmlFrogSystem, self).__init__(options)
def ImplementationGenerator(self, interface):
return HtmlFrogClassGenerator(self, interface)

Powered by Google App Engine
This is Rietveld 408576698