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

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

Issue 12646004: Map typed arrays to lists for now. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 6816929deadc77e374c6b1edbf6401e778a7907f..c4c9e8842d55f9d01d1a9405cfddb4c9a4d69b0c 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -1345,7 +1345,11 @@ class TypeData(object):
def TypedArrayTypeData(item_type):
- return TypeData(clazz='Interface', item_type=item_type, is_typed_array=True)
+ return TypeData(
+ clazz='Interface',
+ dart_type='List<%s>' % item_type, # TODO(antonm): proper typeddata interfaces.
+ item_type=item_type,
+ is_typed_array=True)
_idl_type_registry = monitored.Dict('generator._idl_type_registry', {
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698