OLD | NEW |
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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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", "fileBrowserHandler", "fontSettings", | 548 "browserAction", "extension", "fileBrowserHandler", "fontSettings", |
549 "input.ime", "omnibox", "pageAction", "scriptBadge", "windows", | 549 "input.ime", "omnibox", "pageAction", "scriptBadge", "windows", |
550 "experimental.devtools.audits", "experimental.devtools.console", | 550 "experimental.devtools.audits", "experimental.devtools.console", |
551 "experimental.discovery", "experimental.infobars", | 551 "experimental.discovery", "experimental.infobars", |
552 "experimental.keybinding", "experimental.offscreenTabs", | 552 "experimental.keybinding", "experimental.offscreenTabs", |
553 "experimental.processes", "experimental.speechInput" | 553 "experimental.processes", "experimental.speechInput", |
| 554 "devtools.inspectedWindow", "devtools.panels", "devtools.network" |
554 ].indexOf(item) == -1; | 555 ].indexOf(item) == -1; |
555 }); | 556 }); |
556 } | 557 } |
557 | 558 |
558 return result; | 559 return result; |
559 } | 560 } |
560 | 561 |
561 function getDataFromPageHTML(id) { | 562 function getDataFromPageHTML(id) { |
562 var node = document.getElementById(id); | 563 var node = document.getElementById(id); |
563 if (!node) | 564 if (!node) |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 } | 854 } |
854 if (a.name > b.name) { | 855 if (a.name > b.name) { |
855 return 1; | 856 return 1; |
856 } | 857 } |
857 return 0; | 858 return 0; |
858 } | 859 } |
859 | 860 |
860 function disableDocs(obj) { | 861 function disableDocs(obj) { |
861 return !!obj.nodoc; | 862 return !!obj.nodoc; |
862 } | 863 } |
OLD | NEW |