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

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

Issue 14036014: Updating DOM code to use list mixins (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/src/ImmutableListMixin.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index f88a451c61bf642b44455a0b731248ca34cec91b..4156f35dd507ca98802a0b5eaa06664f65d9aa19 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -518,6 +518,13 @@ class HtmlDartInterfaceGenerator(object):
if implements:
implements_str = ' implements ' + ', '.join(set(implements))
+ mixins = self._backend.Mixins()
+ mixins_str = ''
+ if mixins:
+ mixins_str = ' with ' + ', '.join(set(mixins))
sra1 2013/04/24 20:01:01 set(x) has undefined iteration order Just do .joi
blois 2013/04/26 21:02:34 Done.
+ if not base_class:
+ base_class = 'Object'
+
annotations = FormatAnnotationsAndComments(
GetAnnotationsAndComments(self._library_name,
self._interface.doc_js_name), '')
@@ -534,6 +541,7 @@ class HtmlDartInterfaceGenerator(object):
CLASSNAME=self._interface_type_info.implementation_name(),
EXTENDS=' extends %s' % base_class if base_class else '',
IMPLEMENTS=implements_str,
+ MIXINS=mixins_str,
DOMNAME=self._interface.doc_js_name,
NATIVESPEC=self._backend.NativeSpec())
self._backend.StartInterface(self._implementation_members_emitter)
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/src/ImmutableListMixin.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698