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

Unified Diff: chrome/common/extensions/docs/build/directory.py

Issue 8869003: Move the "extension" namespace from extension_api.json into extension_api_extension.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build.py again? Created 9 years 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/build/directory.py
diff --git a/chrome/common/extensions/docs/build/directory.py b/chrome/common/extensions/docs/build/directory.py
index 95df4cd88117f5ad6aa1e1f68718049791aeaa6f..163729b9bca7fc18c754d5f7c905078673386366 100644
--- a/chrome/common/extensions/docs/build/directory.py
+++ b/chrome/common/extensions/docs/build/directory.py
@@ -57,7 +57,7 @@ def parse_json_file(path, encoding="utf-8"):
return json_obj
class ApiManifest(object):
- """ Represents the list of API methods contained in extension_api.json """
+ """ Represents the list of API methods contained in the extension API JSON """
_MODULE_DOC_KEYS = ['functions', 'events']
""" Keys which may be passed to the _parseModuleDocLinksByKey method."""
@@ -66,7 +66,7 @@ class ApiManifest(object):
""" Read the supplied manifest file and parse its contents.
Args:
- manifest_paths: Array of paths to API schemas (extension_api.json etc).
+ manifest_paths: Array of paths to API schemas.
"""
self._manifest = [];
for path in manifest_paths:
@@ -95,7 +95,7 @@ class ApiManifest(object):
documentation URLs.
Args:
- module: The data in extension_api.json corresponding to a single module.
+ module: The data in the extension API JSON for a single module.
key: A key belonging to _MODULE_DOC_KEYS to determine which set of
methods to parse, and what kind of documentation URL to generate.
@@ -139,7 +139,7 @@ class ApiManifest(object):
if "nodoc" not in module)
def getDocumentationLinks(self):
- """ Parses the extension_api.json manifest and returns a dict of all
+ """ Parses the extension API JSON manifest and returns a dict of all
events and methods for every module, mapped to relative documentation links.
Returns:
« no previous file with comments | « chrome/common/extensions/docs/build/build.py ('k') | chrome/common/extensions/docs/examples/api/omnibox/extension-docs.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698