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

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

Issue 10698108: Stop passing HtmlSystemShared around and move html renaming to IDLTypeInfo. (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
« no previous file with comments | « lib/dom/scripts/generator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systembase.py
diff --git a/lib/dom/scripts/systembase.py b/lib/dom/scripts/systembase.py
index 0ce588d0b1e2a1b8ec2e6303b24a1f79ac6a1e9f..68e03bf8393824dce6688b88cb37741575cd3743 100644
--- a/lib/dom/scripts/systembase.py
+++ b/lib/dom/scripts/systembase.py
@@ -56,8 +56,8 @@ class System(object):
code.Emit(self._templates.Load('callback.darttemplate'))
code.Emit('typedef $TYPE $NAME($PARAMS);\n',
NAME=interface.id,
- TYPE=info.type_name,
- PARAMS=info.ParametersImplementationDeclaration())
+ TYPE=DartType(info.type_name),
+ PARAMS=info.ParametersImplementationDeclaration(DartType))
def _GenerateLibFile(self, lib_template, lib_file_path, file_paths,
@@ -222,6 +222,10 @@ class BaseGenerator(object):
walk(interface.parents[1:])
return result
+ def _DartType(self, type_name):
+ return self._system._type_registry.DartType(type_name)
+
+
class GeneratorContext(object):
def __init__(self, templates, database, emitters, type_registry, output_dir):
self.templates = templates
« no previous file with comments | « lib/dom/scripts/generator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698