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

Unified Diff: chrome/common/extensions/docs/js/api_page_generator.js

Issue 2843025: Extension Docs (No building or testable files) (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: render docs Created 10 years, 6 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
« no previous file with comments | « chrome/common/extensions/docs/index.html ('k') | chrome/common/extensions/docs/manifest.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/js/api_page_generator.js
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js
index c1adb115a554aedfdbe35dda9ffa5fcb73290788..a009042312e4ccc004977901766f318f095aab04 100644
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -299,6 +299,14 @@ function getTypeRef(type) {
return type["$ref"];
}
+function getEnumValues(enumList, type) {
+ if (type === "string") {
+ enumList = enumList.map(function(e) { return '"' + e + '"'});
+ }
+ var retval = enumList.join(', ');
+ return "[" + retval + "]";
+}
+
function showPageTOC() {
return module || getDataFromPageHTML('pageData-showTOC');
}
« no previous file with comments | « chrome/common/extensions/docs/index.html ('k') | chrome/common/extensions/docs/manifest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698