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

Side by Side Diff: chrome/common/extensions/docs/js/api_page_generator.js

Issue 10686006: Regenerate extension docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/extensions/xhr.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview This file is the controller for generating extension 6 * @fileoverview This file is the controller for generating extension
7 * doc pages. 7 * doc pages.
8 * 8 *
9 * It expects to have available via XHR (relative path): 9 * It expects to have available via XHR (relative path):
10 * 1) API_TEMPLATE which is the main template for the api pages. 10 * 1) API_TEMPLATE which is the main template for the api pages.
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 539
540 return true; 540 return true;
541 }).map(function(module) { 541 }).map(function(module) {
542 return module.namespace; 542 return module.namespace;
543 }).sort(); 543 }).sort();
544 544
545 if (packageType == 'platform_app') { 545 if (packageType == 'platform_app') {
546 result = result.filter(function(item) { 546 result = result.filter(function(item) {
547 return [ 547 return [
548 "browserAction", "extension", "input.ime", "omnibox", "pageAction", 548 "browserAction", "extension", "input.ime", "omnibox", "pageAction",
549 "scriptBadge", "windows", "experimental.fontSettings", 549 "scriptBadge", "windows", "experimental.devtools.audits",
550 "experimental.infobars", "experimental.keybindings", 550 "experimental.devtools.console", "experimental.fontSettings",
551 "experimental.infobars", "experimental.keybinding",
551 "experimental.offscreenTabs", "experimental.processes", 552 "experimental.offscreenTabs", "experimental.processes",
552 ].indexOf(item) == -1; 553 ].indexOf(item) == -1;
553 }); 554 });
554 } 555 }
555 556
556 return result; 557 return result;
557 } 558 }
558 559
559 function getDataFromPageHTML(id) { 560 function getDataFromPageHTML(id) {
560 var node = document.getElementById(id); 561 var node = document.getElementById(id);
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 } 852 }
852 if (a.name > b.name) { 853 if (a.name > b.name) {
853 return 1; 854 return 1;
854 } 855 }
855 return 0; 856 return 0;
856 } 857 }
857 858
858 function disableDocs(obj) { 859 function disableDocs(obj) {
859 return !!obj.nodoc; 860 return !!obj.nodoc;
860 } 861 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/extensions/xhr.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698