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. |
11 * 2) The files located at MODULE_SCHEMAS which are shared with the extension | 11 * 2) The files located at MODULE_SCHEMAS which are shared with the extension |
12 * system and defines the methods and events contained in one api. | 12 * system and defines the methods and events contained in one api. |
13 * 3) (Possibly) A static version of the current page url in /static/. I.e. | 13 * 3) (Possibly) A static version of the current page url in /static/. I.e. |
14 * if called as ../foo.html, it will look for ../static/foo.html. | 14 * if called as ../foo.html, it will look for ../static/foo.html. |
15 * | 15 * |
16 * The "shell" page may have a renderering already contained within it so that | 16 * The "shell" page may have a renderering already contained within it so that |
17 * the docs can be indexed. | 17 * the docs can be indexed. |
18 * | 18 * |
19 */ | 19 */ |
20 | 20 |
21 var API_TEMPLATE = 'template/api_template.html'; | 21 var API_TEMPLATE = 'template/api_template.html'; |
22 var MODULE_SCHEMAS = [ | 22 var MODULE_SCHEMAS = [ |
23 '../api/bookmarks.json', | 23 '../api/bookmarks.json', |
24 '../api/browserAction.json', | 24 '../api/browserAction.json', |
25 '../api/browsingData.json', | 25 '../api/browsingData.json', |
26 '../api/chromeAuthPrivate.json', | 26 '../api/chromeAuthPrivate.json', |
27 '../api/chromePrivate.json', | |
28 '../api/chromeosInfoPrivate.json', | 27 '../api/chromeosInfoPrivate.json', |
29 '../api/contentSettings.json', | 28 '../api/contentSettings.json', |
30 '../api/contextMenus.json', | 29 '../api/contextMenus.json', |
31 '../api/cookies.json', | 30 '../api/cookies.json', |
32 '../api/debugger.json', | 31 '../api/debugger.json', |
33 '../api/devtools.json', | 32 '../api/devtools.json', |
34 '../api/experimental.accessibility.json', | 33 '../api/experimental.accessibility.json', |
35 '../api/experimental.app.json', | 34 '../api/experimental.app.json', |
36 '../api/experimental.bookmarkManager.json', | 35 '../api/experimental.bookmarkManager.json', |
37 '../api/experimental.downloads.json', | 36 '../api/experimental.downloads.json', |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 } | 679 } |
681 if (a.name > b.name) { | 680 if (a.name > b.name) { |
682 return 1; | 681 return 1; |
683 } | 682 } |
684 return 0; | 683 return 0; |
685 } | 684 } |
686 | 685 |
687 function disableDocs(obj) { | 686 function disableDocs(obj) { |
688 return !!obj.nodoc || !!obj.internal; | 687 return !!obj.nodoc || !!obj.internal; |
689 } | 688 } |
OLD | NEW |