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

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

Issue 10008048: Generate DOMStringMap implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « no previous file | lib/dom/src/native_DOMImplementation.dart » ('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 6a6ed978961d5bd9da79e46c2ce28dc48b5e742d..5717cc54a00aa64c501631edfc9963f303d0af62 100644
--- a/lib/dom/scripts/generator.py
+++ b/lib/dom/scripts/generator.py
@@ -531,6 +531,8 @@ class IDLTypeInfo(object):
def conversion_includes(self):
def NeededDartTypes(type_name):
+ if type_name == 'Map<String, String>':
+ return ['DOMStringMap']
match = re.match(r'List<(\w*)>$', type_name)
if match:
return NeededDartTypes(match.group(1))
« no previous file with comments | « no previous file | lib/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698