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

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

Issue 2881038: Extension doc changes (nothing buildable or testable) - Add boilerplate line for experimental api... (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: render docs Created 10 years, 5 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 a009042312e4ccc004977901766f318f095aab04..5aa11fe2b68f93394eea63bc2b65090f0ae57625 100644
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -373,6 +373,11 @@ function getFullyQualifiedFunctionName(func) {
return getModuleName() + "." + func.name;
}
+function isExperimentalAPIPage() {
+ return (getPageName().indexOf('.experimental.') >= 0 &&
+ getPageName().indexOf('.experimental.*') < 0);
+}
+
function hasCallback(parameters) {
return (parameters.length > 0 &&
parameters[parameters.length - 1].type == "function");
« 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