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

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

Issue 15074006: Generating annotations from DOM triage list. (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
« tools/dom/scripts/dartmetadata.py ('K') | « tools/dom/scripts/dartmetadata.py ('k') | no next file » | 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 0302a6c7a0e8e019a643a32547b861295ddced7e..6e61d49b8009c1b74624af245364204ecb9e9952 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -451,8 +451,11 @@ class HtmlDartInterfaceGenerator(object):
self._library_name)
code.Emit(self._template_loader.Load('callback.darttemplate'))
- code.Emit('typedef void $NAME($PARAMS);\n',
- LIBRARYNAME='dart.dom.%s' % self._library_name,
+ annotations = self._metadata.GetFormattedMetadata(self._library_name,
+ self._interface)
+
+ code.Emit('$(ANNOTATIONS)typedef void $NAME($PARAMS);\n',
+ ANNOTATIONS=annotations,
NAME=typedef_name,
PARAMS=info.ParametersDeclaration(self._DartType))
self._backend.GenerateCallback(info)
« tools/dom/scripts/dartmetadata.py ('K') | « tools/dom/scripts/dartmetadata.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698