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

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

Issue 10834261: Move chrome.experimental.app.onLaunched event handler to chrome.app.runtime.onLaunched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another merge before retrying commit. Created 8 years, 4 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
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.
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_EXTENSIONS = '../template/api_template.html'; 21 var API_TEMPLATE_EXTENSIONS = '../template/api_template.html';
22 var API_TEMPLATE_APPS = '../template/api_template_apps.html'; 22 var API_TEMPLATE_APPS = '../template/api_template_apps.html';
23 var MODULE_SCHEMAS = [ 23 var MODULE_SCHEMAS = [
24 '../../api/alarms.json', // autogenerated 24 '../../api/alarms.json', // autogenerated
25 '../../api/app_runtime.json', // autogenerated
25 '../../api/app_window.json', // autogenerated 26 '../../api/app_window.json', // autogenerated
26 '../../api/bookmarks.json', 27 '../../api/bookmarks.json',
27 '../../api/browser_action.json', 28 '../../api/browser_action.json',
28 '../../api/browsing_data.json', 29 '../../api/browsing_data.json',
29 '../../api/chromeos_info_private.json', 30 '../../api/chromeos_info_private.json',
30 '../../api/cloud_print_private.json', 31 '../../api/cloud_print_private.json',
31 '../../api/content_settings.json', 32 '../../api/content_settings.json',
32 '../../api/context_menus.json', 33 '../../api/context_menus.json',
33 '../../api/cookies.json', 34 '../../api/cookies.json',
34 '../../api/debugger.json', 35 '../../api/debugger.json',
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 } 855 }
855 if (a.name > b.name) { 856 if (a.name > b.name) {
856 return 1; 857 return 1;
857 } 858 }
858 return 0; 859 return 0;
859 } 860 }
860 861
861 function disableDocs(obj) { 862 function disableDocs(obj) {
862 return !!obj.nodoc; 863 return !!obj.nodoc;
863 } 864 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/extensions/samples.html ('k') | chrome/common/extensions/docs/samples.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698