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

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

Issue 53403004: Add deprecated annotation for events in API documentation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 2 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: chrome/common/extensions/docs/server2/api_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py
index a8147e9b39cb1b7ac2dcc7f738692be8374d7061..420870b54d1c75d6ddee841618d196583fd52eaa 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -203,6 +203,9 @@ class _JSCModel(object):
'properties': [],
'id': _CreateId(event, 'event')
}
+ if (event.deprecated is not None):
not at google - send to devlin 2013/10/31 20:23:13 no need for parens
dhnishi (use Chromium) 2013/10/31 21:29:23 Done.
+ event_dict['deprecated'] = self._FormatDescription(
+ event.deprecated)
if (event.parent is not None and
not isinstance(event.parent, model.Namespace)):
event_dict['parentName'] = event.parent.simple_name

Powered by Google App Engine
This is Rietveld 408576698