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

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

Issue 11315018: Extensions Docs Server: Generalize $ref's to work for any schema node (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index d017f0161041d2baadfd48777832872b95a3b2f6..d9b383f7a62b838b8c967b48d971941b0e6bc252 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -68,6 +68,13 @@ class APIListDataSource(object):
self._cache = cache
self._api_path = api_path
+ def GetAllNames(self):
+ names = []
+ for i in ['apps', 'extensions']:
+ for j in ['chrome', 'experimental']:
+ names.extend(self[i][j])
+ return [api_name['name'].replace('experimental.', '') for api_name in names]
+
def __getitem__(self, key):
return self.get(key)

Powered by Google App Engine
This is Rietveld 408576698