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

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, 7 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 54736359988ce1da1e847e1df57a1c57b97c0c1c..ebe90e01ad3ca7888f74fa7262d625da1c468da6 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -520,6 +520,13 @@ class HtmlDartInterfaceGenerator(object):
if implements:
implements_str = ' implements ' + ', '.join(set(implements))
+ mixins = self._backend.Mixins()
+ mixins_str = ''
+ if mixins:
+ mixins_str = ' with ' + ', '.join(mixins)
+ if not base_class:
+ base_class = 'Object'
+
annotations = self._metadata.GetFormattedMetadata(
self._library_name, self._interface.doc_js_name, '')
@@ -535,6 +542,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