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

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

Issue 10542036: Use original WebKit IDL database for dart:html generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 6 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/dartgenerator.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/generator.py
diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py
index 4178f9cff0163622502ee0e613107c216a86ac01..8ef1ad14494adcaf092dd03508b3cf3336d61ee3 100644
--- a/lib/dom/scripts/generator.py
+++ b/lib/dom/scripts/generator.py
@@ -387,11 +387,11 @@ class OperationInfo(object):
param_infos: A list of ParamInfo.
"""
- def ParametersInterfaceDeclaration(self):
+ def ParametersInterfaceDeclaration(self, rename_type=lambda x: x):
"""Returns a formatted string declaring the parameters for the interface."""
return self._FormatParams(
self.param_infos, None,
- lambda param: TypeOrNothing(param.dart_type, param.type_id))
+ lambda param: TypeOrNothing(rename_type(param.dart_type), param.type_id))
def ParametersImplementationDeclaration(
self, rename_type=None, default_value='null'):
« no previous file with comments | « lib/dom/scripts/dartgenerator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698