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

Unified Diff: chrome/common/extensions/docs/server2/handlebar_dict_generator.py

Issue 10969053: Extensions Docs Server: Show callbacks for events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: put callback on its own line 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/handlebar_dict_generator.py
diff --git a/chrome/common/extensions/docs/server2/handlebar_dict_generator.py b/chrome/common/extensions/docs/server2/handlebar_dict_generator.py
index 1b21e89859b68bf76ca420b0d3de34ad62a3470e..5d52f2ca8a0af6b31da50ca230ba1125559538b5 100644
--- a/chrome/common/extensions/docs/server2/handlebar_dict_generator.py
+++ b/chrome/common/extensions/docs/server2/handlebar_dict_generator.py
@@ -112,6 +112,7 @@ class HandlebarDictGenerator(object):
'name': self._StripPrefix(event.name),
'description': self._FormatDescription(event.description),
'parameters': map(self._GenerateProperty, event.params),
+ 'callback': self._GenerateCallback(event.callback),
'conditions': [GetLinkToRefType(self._namespace.name, c)
for c in event.conditions],
'actions': [GetLinkToRefType(self._namespace.name, a)
@@ -119,6 +120,8 @@ class HandlebarDictGenerator(object):
'filters': map(self._GenerateProperty, event.filters),
'supportsRules': event.supports_rules
}
+ if event_dict['callback']:
+ event_dict['parameters'].append(event_dict['callback'])
if len(event_dict['parameters']) > 0:
event_dict['parameters'][-1]['last'] = True
return event_dict
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/test_data/test_json/expected_test_file.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698