summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/js/api_page_generator.js
diff options
context:
space:
mode:
authorcaseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 15:10:29 +0000
committercaseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 15:10:29 +0000
commit883c7f0eb51dcdf8f56d88a0df22cc00d0c80f01 (patch)
tree8f226c663d20cf6ee376725e84a2f082fac4a83e /chrome/common/extensions/docs/js/api_page_generator.js
parent837938975c630c2cd6f6c47df227589985cb2bea (diff)
downloadchromium_src-883c7f0eb51dcdf8f56d88a0df22cc00d0c80f01.zip
chromium_src-883c7f0eb51dcdf8f56d88a0df22cc00d0c80f01.tar.gz
chromium_src-883c7f0eb51dcdf8f56d88a0df22cc00d0c80f01.tar.bz2
Added summary page and static content for WebInspector modules.
BUG=56660 TEST=experimental.webInspector.html exists, other experimental.webInspector.* pages have static text that refers to it. Review URL: http://codereview.chromium.org/6665040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/js/api_page_generator.js')
-rw-r--r--chrome/common/extensions/docs/js/api_page_generator.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js
index c778d0d..b5afc6f 100644
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -1,3 +1,7 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
/**
* @fileoverview This file is the controller for generating extension
* doc pages.
@@ -20,7 +24,7 @@ var SCHEMA = "../api/extension_api.json";
var DEVTOOLS_SCHEMA = WEBKIT_PATH +
"/Source/WebCore/inspector/front-end/ExtensionAPISchema.json";
var USE_DEVTOOLS_SCHEMA =
- /\.webInspector\.[^/]*\.html/.test(location.pathname);
+ /\.webInspector[^/]*\.html/.test(location.pathname);
var API_MODULE_PREFIX = USE_DEVTOOLS_SCHEMA ? "" : "chrome.";
var SAMPLES = "samples.json";
var REQUEST_TIMEOUT = 2000;
@@ -343,6 +347,14 @@ function experimentalAPIs() {
}).sort();
}
+function webInspectorAPIs() {
+ return schema.filter(function(module) {
+ return !module.nodoc && module.namespace.indexOf("webInspector.") !== 0;
+ }).map(function(module) {
+ return module.namespace;
+ }).sort();
+}
+
function getDataFromPageHTML(id) {
var node = document.getElementById(id);
if (!node)