summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
authorDHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 19:28:46 +0000
committerDHNishi@gmail.com <DHNishi@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 19:28:46 +0000
commit9c7830ba58277583ca0907237b7ab50b7d671aec (patch)
treedbd7b0a1acf06a493bf9e0a4e0811ffe332c8900 /tools/json_schema_compiler
parentd61d98831db9088a483689c1578f982565571ab2 (diff)
downloadchromium_src-9c7830ba58277583ca0907237b7ab50b7d671aec.zip
chromium_src-9c7830ba58277583ca0907237b7ab50b7d671aec.tar.gz
chromium_src-9c7830ba58277583ca0907237b7ab50b7d671aec.tar.bz2
Add a deprecated annotation for api documentation.
Example Image: http://i.imgur.com/CNGWOVS.png NOTRY=true BUG=239196 Review URL: https://codereview.chromium.org/26231004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r--tools/json_schema_compiler/model.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 2fcb4df..cc876df 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -208,6 +208,7 @@ class Function(object):
available to
- |params| a list of parameters to the function (order matters). A separate
parameter is used for each choice of a 'choices' parameter
+ - |deprecated| a reason and possible alternative for a deprecated function
- |description| a description of the function (if provided)
- |callback| the callback parameter to the function. There should be exactly
one
@@ -228,6 +229,7 @@ class Function(object):
self.platforms = _GetPlatforms(json)
self.params = []
self.description = json.get('description')
+ self.deprecated = json.get('deprecated')
self.callback = None
self.optional = json.get('optional', False)
self.parent = parent