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

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

Issue 11055009: Converting NodeList to List<Node>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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/html/scripts/generator.py
diff --git a/lib/html/scripts/generator.py b/lib/html/scripts/generator.py
index 21293c7fc5fbb268b03d48c3880755f962f2e23e..fe618dae44d9cb6c4e310795bb8b3f504576d731 100644
--- a/lib/html/scripts/generator.py
+++ b/lib/html/scripts/generator.py
@@ -810,7 +810,7 @@ class TypeData(object):
webcore_getter_name='getAttribute',
webcore_setter_name='setAttribute',
requires_v8_scope=False, suppress_public_interface=False):
- """Constructor.
+ """Constructor.
Arguments:
- suppress_public_interface is True if we are converting a DOM type to a
built-in Dart type in which case we do not want to generate the new
@@ -908,6 +908,8 @@ _idl_type_registry = {
dart_type='List<MediaStream>', suppress_public_interface=True),
'MutationRecordArray': TypeData(clazz='Interface', # C++ pass by pointer.
native_type='MutationRecordArray', dart_type='List<MutationRecord>'),
+ 'NodeList': TypeData(clazz='Interface', dart_type='List<Node>',
+ suppress_public_interface=False),
'StyleSheet': TypeData(clazz='Interface', conversion_includes=['CSSStyleSheet']),
'SVGElement': TypeData(clazz='Interface', custom_to_dart=True),
'SVGElementInstanceList': TypeData(clazz='Interface',

Powered by Google App Engine
This is Rietveld 408576698