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

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

Issue 10941047: Don't generate FooList if it behaves like List<Foo> exactly. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/systemnative.py
===================================================================
--- lib/html/scripts/systemnative.py (revision 12656)
+++ lib/html/scripts/systemnative.py (working copy)
@@ -430,7 +430,7 @@
def _AddSetter(self, attr, html_name):
type_info = self._TypeInfo(attr.type.id)
- dart_declaration = 'void set %s(%s)' % (html_name, self._DartType(attr.type.id))
+ dart_declaration = 'void set %s(%s value)' % (html_name, self._DartType(attr.type.id))
is_custom = set(['Custom', 'CustomSetter', 'V8CustomSetter']) & set(attr.ext_attrs)
cpp_callback_name = self._GenerateNativeBinding(attr.id, 2,
dart_declaration, 'Setter', is_custom)

Powered by Google App Engine
This is Rietveld 408576698