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

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: Yaml bump. Created 7 years, 1 month 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/app.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f8c2402e4e12b9435a4c1956aea15526ff663bf4..b20137f44be6aa526290a8568c590e92ee706825 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -179,7 +179,7 @@ class _JSCModel(object):
'returns': None,
'id': _CreateId(function, 'method')
}
- if (function.deprecated is not None):
+ if function.deprecated is not None:
function_dict['deprecated'] = self._FormatDescription(
function.deprecated)
if (function.parent is not None and
@@ -219,6 +219,9 @@ class _JSCModel(object):
'id': _CreateId(event, 'event'),
'byName': {},
}
+ if event.deprecated is not None:
+ 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698