| 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 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |