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

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
Index: lib/dom/scripts/generator.py
diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py
index 121c46e5b79a793c6cc721b87a662d455c23c57d..8c698a4846b37b785bcfaed9727fc55f1210b72c 100644
--- a/lib/dom/scripts/generator.py
+++ b/lib/dom/scripts/generator.py
@@ -388,11 +388,13 @@ class OperationInfo(object):
param_infos: A list of ParamInfo.
"""
- def ParametersInterfaceDeclaration(self):
+ def ParametersInterfaceDeclaration(self, rename_type=None):
Anton Muhin 2012/06/07 11:43:47 why not rename_type=lambda x: x?
podivilov 2012/06/08 18:03:25 Done.
"""Returns a formatted string declaring the parameters for the interface."""
+ if not rename_type:
+ rename_type = lambda x: x
return self._FormatParams(
self.param_infos, True,
- 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):
"""Returns a formatted string declaring the parameters for the

Powered by Google App Engine
This is Rietveld 408576698