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
3 // found in the LICENSE file.
5 // The include directives are put into Javascript-style comments to prevent
6 // parsing errors in non-flattened mode. The flattener still sees them.
7 // Note that this makes the flattener to comment out the first line of the
8 // included file but that's all right since any javascript file should start
9 // with a copyright comment anyway.
11 // If you add a new dependency, you should update build files by rerunning
12 // gyp. Otherwise, you'll be bitten by a dependency issue like:
14 // 1) You add a new dependency to "whatever.js"
15 // 2) You make changes in "whatever.js"
16 // 3) Rebuild "resources.pak" and open Files.app
17 // 4) You don't see the changes in "whatever.js". Why is that?
19 // Because the dependencies are computed at gyp time, the existing build
20 // files don't know that "resources.pak" now has a dependency to
21 // "whatever.js". You should rerun gyp to let the build files know.
23 // //metrics.js initiates load performance tracking
24 // //so we want to parse it as early as possible.
25 //<include src="metrics.js"/>
27 //<include src="../../../image_loader/image_loader_client.js"/>
29 //<include src="../../../../../../ui/webui/resources/js/load_time_data.js"/>
30 //<include src="../../../../../../ui/webui/resources/js/cr.js"/>
31 //<include src="../../../../../../ui/webui/resources/js/util.js"/>
32 //<include src="../../../../../../ui/webui/resources/js/i18n_template_no_process.js"/>
34 //<include src="../../../../../../ui/webui/resources/js/event_tracker.js"/>
35 //<include src="../../../../../../ui/webui/resources/js/cr/ui.js"/>
36 //<include src="../../../../../../ui/webui/resources/js/cr/event_target.js"/>
37 //<include src="../../../../../../ui/webui/resources/js/cr/ui/touch_handler.js"/>
38 //<include src="../../../../../../ui/webui/resources/js/cr/ui/array_data_model.js"/>
39 //<include src="../../../../../../ui/webui/resources/js/cr/ui/dialogs.js"/>
40 //<include src="../../../../../../ui/webui/resources/js/cr/ui/list_item.js"/>
41 //<include src="../../../../../../ui/webui/resources/js/cr/ui/list_selection_model.js"/>
42 //<include src="../../../../../../ui/webui/resources/js/cr/ui/list_single_selection_model.js"/>
43 //<include src="../../../../../../ui/webui/resources/js/cr/ui/list_selection_controller.js"/>
44 //<include src="../../../../../../ui/webui/resources/js/cr/ui/list.js"/>
45 //<include src="../../../../../../ui/webui/resources/js/cr/ui/tree.js"/>
46 //<include src="../../../../../../ui/webui/resources/js/cr/ui/autocomplete_list.js"/>
48 //<include src="../../../../../../ui/webui/resources/js/cr/ui/splitter.js"/>
49 //<include src="../../../../../../ui/webui/resources/js/cr/ui/table/table_splitter.js"/>
51 //<include src="../../../../../../ui/webui/resources/js/cr/ui/table/table_column.js"/>
52 //<include src="../../../../../../ui/webui/resources/js/cr/ui/table/table_column_model.js"/>
53 //<include src="../../../../../../ui/webui/resources/js/cr/ui/table/table_header.js"/>
54 //<include src="../../../../../../ui/webui/resources/js/cr/ui/table/table_list.js"/>
55 //<include src="../../../../../../ui/webui/resources/js/cr/ui/table.js"/>
57 //<include src="../../../../../../ui/webui/resources/js/cr/ui/grid.js"/>
59 //<include src="../../../../../../ui/webui/resources/js/cr/ui/command.js"/>
60 //<include src="../../../../../../ui/webui/resources/js/cr/ui/position_util.js"/>
61 //<include src="../../../../../../ui/webui/resources/js/cr/ui/menu_item.js"/>
62 //<include src="../../../../../../ui/webui/resources/js/cr/ui/menu.js"/>
63 //<include src="../../../../../../ui/webui/resources/js/cr/ui/menu_button.js"/>
64 //<include src="../../../../../../ui/webui/resources/js/cr/ui/context_menu_handler.js"/>
67 // 'strict mode' is invoked for this scope.
69 // // This script must be loaded before all other Files.app's scripts.
70 //<include src="error_counter.js"/>
72 //<include src="../../common/js/async_util.js"/>
73 //<include src="../../common/js/path_util.js"/>
74 //<include src="../../common/js/util.js"/>
75 //<include src="../../common/js/progress_center_common.js">
77 //<include src="combobutton.js"/>
78 //<include src="commandbutton.js"/>
79 //<include src="ui/file_manager_dialog_base.js"/>
81 //<include src="app_installer.js"/>
82 //<include src="cws_container_client.js"/>
83 //<include src="directory_contents.js"/>
84 //<include src="directory_model.js"/>
85 //<include src="directory_tree.js"/>
86 //<include src="drag_selector.js"/>
87 //<include src="drive_banners.js" />
88 //<include src="error_dialog.js"/>
89 //<include src="file_operation_manager_wrapper.js"/>
90 //<include src="file_grid.js"/>
91 //<include src="file_manager.js"/>
92 //<include src="file_selection.js"/>
93 //<include src="file_table.js"/>
94 //<include src="file_tasks.js"/>
95 //<include src="file_transfer_controller.js"/>
96 //<include src="file_type.js"/>
97 //<include src="file_watcher.js"/>
98 //<include src="folder_shortcuts_data_model.js"/>
99 //<include src="navigation_list_model.js"/>
100 //<include src="scrollbar.js"/>
101 //<include src="share_client.js"/>
102 //<include src="share_dialog.js"/>
103 //<include src="suggest_apps_dialog.js"/>
104 //<include src="text_measure.js"/>
105 //<include src="tree.css.js"/>
106 //<include src="ui/breadcrumbs_controller.js"/>
107 //<include src="ui/conflict_dialog.js"/>
108 //<include src="ui/file_manager_ui.js"/>
109 //<include src="ui/navigation_list.js"/>
110 //<include src="ui/preview_panel.js"/>
111 //<include src="ui/progress_center_panel.js"/>
112 //<include src="ui/search_box.js"/>
113 //<include src="volume_manager_wrapper.js"/>
114 //<include src="media/media_util.js"/>
115 //<include src="metadata/metadata_cache.js"/>
116 //<include src="default_action_dialog.js"/>
117 //<include src="file_manager_commands.js"/>
119 // // For accurate load performance tracking place main.js should be
120 // // the last include to include.
121 //<include src="main.js"/>
123 // Global fileManager reference useful for poking at from the console.
124 window.fileManager = fileManager;
128 window.FileOperationManagerWrapper = FileOperationManagerWrapper;
130 window.unload = unload;