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

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

Issue 12038036: SVG Library cleanups and adding supported tag. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: tools/dom/scripts/htmldartgenerator.py
diff --git a/tools/dom/scripts/htmldartgenerator.py b/tools/dom/scripts/htmldartgenerator.py
index 6ff883a36ccef94753b5662612295d618e00d012..e8d1295d0bb68447f30193c240ee9bf6ea28e1c2 100644
--- a/tools/dom/scripts/htmldartgenerator.py
+++ b/tools/dom/scripts/htmldartgenerator.py
@@ -31,11 +31,16 @@ class HtmlDartGenerator(object):
def EmitSupportCheck(self):
if self.HasSupportCheck():
- support_check = self.GetSupportCheck()
+ check = self.GetSupportCheck()
+ if type(check) != tuple:
+ signature = 'get supported'
+ else:
+ signature = check[0]
+ check = check[1]
self._members_emitter.Emit('\n'
' /// Checks if this type is supported on the current platform.\n'
- ' static bool get supported => $SUPPORT_CHECK;\n',
- SUPPORT_CHECK=support_check)
+ ' static bool $SIGNATURE => $SUPPORT_CHECK;\n',
+ SIGNATURE=signature, SUPPORT_CHECK=check)
def EmitEventGetter(self, events_class_name):
self._members_emitter.Emit(

Powered by Google App Engine
This is Rietveld 408576698