OLD | NEW |
| (Empty) |
1 # Copyright 2015 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. | |
4 | |
5 # Keep in sync with remoting/remoting_webapp_files.gypi. | |
6 | |
7 # Jscompile proto files. | |
8 # These provide type information for jscompile. | |
9 remoting_webapp_js_proto_files = [ | |
10 "js_proto/chrome_proto.js", | |
11 "js_proto/chrome_cast_proto.js", | |
12 "js_proto/chrome_event_proto.js", | |
13 "js_proto/dom_proto.js", | |
14 "js_proto/remoting_proto.js", | |
15 ] | |
16 | |
17 # | |
18 # Webapp browsertest JavaScript files. | |
19 # | |
20 | |
21 # Browser test files. | |
22 remoting_webapp_browsertest_js_files = [ | |
23 "browser_test/browser_test.js", | |
24 "browser_test/bump_scroll_browser_test.js", | |
25 "browser_test/cancel_pin_browser_test.js", | |
26 "browser_test/invalid_pin_browser_test.js", | |
27 "browser_test/it2me_browser_test.js", | |
28 "browser_test/scrollbar_browser_test.js", | |
29 "browser_test/timeout_waiter.js", | |
30 "browser_test/unauthenticated_browser_test.js", | |
31 "browser_test/update_pin_browser_test.js", | |
32 ] | |
33 | |
34 # Browser test files. | |
35 remoting_webapp_browsertest_js_mock_files = [ | |
36 "crd/js/mock_client_plugin.js", | |
37 "crd/js/mock_host_list_api.js", | |
38 "crd/js/mock_identity.js", | |
39 "crd/js/mock_oauth2_api.js", | |
40 "crd/js/mock_session_connector.js", | |
41 "crd/js/mock_signal_strategy.js", | |
42 ] | |
43 remoting_webapp_browsertest_js_proto_files = [ | |
44 "js_proto/sinon_proto.js", | |
45 "js_proto/test_proto.js", | |
46 "<@(remoting_webapp_js_proto_files)", | |
47 ] | |
48 remoting_webapp_browsertest_all_js_files = [ | |
49 "<@(remoting_webapp_browsertest_js_files)", | |
50 "<@(remoting_webapp_browsertest_js_mock_files)", | |
51 ] | |
52 | |
53 # | |
54 # Webapp unittest JavaScript files. | |
55 # | |
56 | |
57 # These product files are excluded from our JavaScript unittest | |
58 remoting_webapp_unittests_exclude_js_files = [ | |
59 # background.js is where the onLoad handler is defined, which | |
60 # makes it the entry point of the background page. | |
61 "crd/js/background.js", | |
62 ] | |
63 | |
64 # The unit test cases for the webapp | |
65 remoting_webapp_unittests_js_files = [ | |
66 # TODO(jrw): Move spy_promise to base. | |
67 "unittests/spy_promise.js", | |
68 "unittests/spy_promise_unittest.js", | |
69 "base/js/base_unittest.js", | |
70 "base/js/base_event_hook_unittest.js", | |
71 "base/js/base_inherits_unittest.js", | |
72 "base/js/ipc_unittest.js", | |
73 "base/js/protocol_extension_manager_unittest.js", | |
74 "crd/js/apps_v2_migration_unittest.js", | |
75 "crd/js/desktop_viewport_unittest.js", | |
76 "crd/js/dns_blackhole_checker_unittest.js", | |
77 "crd/js/error_unittest.js", | |
78 "crd/js/fallback_signal_strategy_unittest.js", | |
79 "crd/js/gcd_client_unittest.js", | |
80 "crd/js/gcd_client_with_mock_xhr_unittest.js", | |
81 "crd/js/host_controller_unittest.js", | |
82 "crd/js/host_daemon_facade_unittest.js", | |
83 "crd/js/host_table_entry_unittest.js", | |
84 "crd/js/identity_unittest.js", | |
85 "crd/js/l10n_unittest.js", | |
86 "crd/js/menu_button_unittest.js", | |
87 "crd/js/mock_xhr_unittest.js", | |
88 "crd/js/typecheck_unittest.js", | |
89 "crd/js/xhr_unittest.js", | |
90 "crd/js/xmpp_connection_unittest.js", | |
91 "crd/js/xmpp_login_handler_unittest.js", | |
92 "crd/js/xmpp_stream_parser_unittest.js", | |
93 ] | |
94 remoting_webapp_unittests_js_mock_files = [ | |
95 # Some proto files can be repurposed as simple mocks for the unittests. | |
96 # Note that some defs in chrome_proto are overwritten by chrome_mocks. | |
97 "crd/js/mock_host_daemon_facade.js", | |
98 "crd/js/mock_signal_strategy.js", | |
99 "js_proto/chrome_proto.js", | |
100 "js_proto/chrome_mocks.js", | |
101 "unittests/sinon_helpers.js", | |
102 "crd/js/mock_xhr.js", | |
103 ] | |
104 | |
105 # Prototypes for objects that are not mocked. | |
106 remoting_webapp_unittests_js_proto_files = [ | |
107 "js_proto/chrome_cast_proto.js", | |
108 "js_proto/dom_proto.js", | |
109 "js_proto/remoting_proto.js", | |
110 "js_proto/qunit_proto.js", | |
111 "js_proto/sinon_proto.js", | |
112 ] | |
113 remoting_webapp_unittests_all_js_files = [ | |
114 "<@(remoting_webapp_unittests_js_files)", | |
115 "<@(remoting_webapp_unittests_js_mock_files)", | |
116 ] | |
117 | |
118 # All the files needed to run the unittests. | |
119 remoting_webapp_unittests_all_files = [ | |
120 "crd/html/menu_button.css", | |
121 "<@(remoting_webapp_unittests_all_js_files)", | |
122 ] | |
123 remoting_webapp_unittests_template_main = "crd/html/template_unittests.html" | |
124 | |
125 # | |
126 # Webapp JavaScript file groups. | |
127 # | |
128 | |
129 # Auth (apps v1) JavaScript files. | |
130 # These files aren"t included directly from main.html. They are | |
131 # referenced from the manifest.json file (appsv1 only). | |
132 remoting_webapp_js_auth_v1_files = [ | |
133 "crd/js/cs_third_party_auth_trampoline.js", # client to host | |
134 "crd/js/cs_oauth2_trampoline.js", # Google account | |
135 ] | |
136 | |
137 # Auth (client to host) JavaScript files. | |
138 remoting_webapp_js_auth_client2host_files = [ | |
139 "crd/js/third_party_host_permissions.js", | |
140 "crd/js/third_party_token_fetcher.js", | |
141 ] | |
142 | |
143 # Auth (Google account) JavaScript files. | |
144 remoting_webapp_js_auth_google_files = [ | |
145 "base/js/auth_init.js", | |
146 "crd/js/identity.js", | |
147 "crd/js/oauth2.js", | |
148 "crd/js/oauth2_api.js", | |
149 "crd/js/oauth2_api_impl.js", | |
150 ] | |
151 | |
152 # Cast extension handler JavaScript files. | |
153 remoting_webapp_js_cast_extension_files = [ "crd/js/cast_extension_handler.js" ] | |
154 | |
155 # Client JavaScript files. | |
156 remoting_webapp_js_client_files = [ | |
157 "crd/js/client_plugin.js", | |
158 "crd/js/client_plugin_impl.js", | |
159 "crd/js/client_plugin_host_desktop_impl.js", | |
160 "crd/js/client_session.js", | |
161 "crd/js/clipboard.js", | |
162 "crd/js/connected_view.js", | |
163 "crd/js/connection_info.js", | |
164 "crd/js/credentials_provider.js", | |
165 "crd/js/desktop_connected_view.js", | |
166 "crd/js/host_desktop.js", | |
167 "crd/js/session_connector.js", | |
168 "crd/js/session_connector_impl.js", | |
169 "crd/js/smart_reconnector.js", | |
170 "crd/js/video_frame_recorder.js", | |
171 ] | |
172 | |
173 # Remoting core JavaScript files. | |
174 remoting_webapp_js_core_files = [ | |
175 "base/js/app_capabilities.js", | |
176 "base/js/application.js", | |
177 "base/js/base.js", | |
178 "base/js/ipc.js", | |
179 "base/js/modal_dialogs.js", | |
180 "base/js/platform.js", | |
181 "base/js/protocol_extension_manager.js", | |
182 "base/js/protocol_extension.js", | |
183 "crd/js/apps_v2_migration.js", | |
184 "crd/js/error.js", | |
185 "crd/js/event_handlers.js", | |
186 "crd/js/plugin_settings.js", | |
187 "crd/js/remoting.js", | |
188 "crd/js/typecheck.js", | |
189 "crd/js/xhr.js", | |
190 "crd/js/gcd_client.js", | |
191 ] | |
192 | |
193 # Gnubby authentication JavaScript files. | |
194 remoting_webapp_js_gnubby_auth_files = [ "crd/js/gnubby_auth_handler.js" ] | |
195 | |
196 # Host JavaScript files. | |
197 remoting_webapp_js_host_files = [ | |
198 "crd/js/host.js", | |
199 "crd/js/host_settings.js", | |
200 ] | |
201 | |
202 # Files for controlling the local machine as a host. | |
203 # Includes both it2me and me2me files. | |
204 remoting_webapp_js_host_control_files = [ | |
205 "crd/js/host_controller.js", | |
206 "crd/js/host_daemon_facade.js", | |
207 "crd/js/host_screen.js", | |
208 "crd/js/host_session.js", | |
209 "crd/js/host_setup_dialog.js", | |
210 "crd/js/host_install_dialog.js", | |
211 "crd/js/host_installer.js", | |
212 "crd/js/it2me_host_facade.js", | |
213 "crd/js/paired_client_manager.js", | |
214 ] | |
215 | |
216 # Files for displaying (in the client) info about available hosts. | |
217 remoting_webapp_js_host_display_files = [ | |
218 "crd/js/host_list.js", | |
219 "crd/js/host_list_api.js", | |
220 "crd/js/host_list_api_impl.js", | |
221 "crd/js/host_table_entry.js", | |
222 "crd/js/local_host_section.js", | |
223 ] | |
224 | |
225 # Logging and stats JavaScript files. | |
226 remoting_webapp_js_logging_files = [ | |
227 "crd/js/format_iq.js", | |
228 "crd/js/log_to_server.js", | |
229 "crd/js/server_log_entry.js", | |
230 "crd/js/stats_accumulator.js", | |
231 ] | |
232 | |
233 # Remoting signaling files. | |
234 remoting_webapp_js_signaling_files = [ | |
235 "crd/js/dns_blackhole_checker.js", | |
236 "crd/js/fallback_signal_strategy.js", | |
237 "crd/js/signal_strategy.js", | |
238 "crd/js/tcp_socket.js", | |
239 "crd/js/wcs_adapter.js", | |
240 "crd/js/wcs_sandbox_container.js", | |
241 "crd/js/xmpp_connection.js", | |
242 "crd/js/xmpp_login_handler.js", | |
243 "crd/js/xmpp_stream_parser.js", | |
244 ] | |
245 | |
246 # UI JavaScript files. | |
247 remoting_webapp_js_ui_files = [ | |
248 "base/js/window_shape.js", | |
249 "crd/js/bump_scroller.js", | |
250 "crd/js/butter_bar.js", | |
251 "crd/js/connection_stats.js", | |
252 "crd/js/desktop_viewport.js", | |
253 "crd/js/feedback.js", | |
254 "crd/js/fullscreen.js", | |
255 "crd/js/fullscreen_v1.js", | |
256 "crd/js/fullscreen_v2.js", | |
257 "crd/js/l10n.js", | |
258 "crd/js/menu_button.js", | |
259 "crd/js/options_menu.js", | |
260 "crd/js/ui_mode.js", | |
261 "crd/js/toolbar.js", | |
262 "crd/js/window_frame.js", | |
263 ] | |
264 | |
265 # | |
266 # DesktopRemoting main.html generation files. | |
267 # | |
268 | |
269 remoting_webapp_template_main = "crd/html/template_main.html" | |
270 | |
271 # The shared JavaScript files required by main.html. | |
272 remoting_webapp_shared_main_html_js_files = | |
273 # Include the core files first as it is required by the other files. | |
274 # Otherwise, Jscompile will complain. | |
275 remoting_webapp_js_core_files + remoting_webapp_js_auth_client2host_files + | |
276 remoting_webapp_js_auth_google_files + remoting_webapp_js_client_files + | |
277 remoting_webapp_js_gnubby_auth_files + | |
278 remoting_webapp_js_cast_extension_files + remoting_webapp_js_host_files + | |
279 remoting_webapp_js_host_control_files + | |
280 remoting_webapp_js_host_display_files + remoting_webapp_js_logging_files + | |
281 remoting_webapp_js_ui_files + remoting_webapp_js_signaling_files | |
282 | |
283 # Uncomment this line to include browser test files in the web app | |
284 # to expedite debugging or local development. | |
285 #+ remoting_webapp_browsertest_all_js_files | |
286 | |
287 # The CRD-specific JavaScript files required by main.html. | |
288 remoting_webapp_crd_main_html_all_js_files = | |
289 remoting_webapp_shared_main_html_js_files | |
290 remoting_webapp_crd_main_html_all_js_files += [ | |
291 "crd/js/crd_auth_dialog.js", | |
292 "crd/js/crd_event_handlers.js", | |
293 "crd/js/crd_experimental.js", | |
294 "crd/js/crd_main.js", | |
295 "crd/js/activity.js", | |
296 "crd/js/desktop_remoting.js", | |
297 "crd/js/it2me_activity.js", | |
298 "crd/js/me2me_activity.js", | |
299 ] | |
300 | |
301 # These template files are used to construct main.html. | |
302 remoting_webapp_template_files = [ | |
303 "base/html/client_plugin.html", | |
304 "crd/html/butter_bar.html", | |
305 "crd/html/dialog_auth.html", | |
306 "crd/html/dialog_client_connect_failed.html", | |
307 "crd/html/dialog_client_connecting.html", | |
308 "crd/html/dialog_client_host_needs_upgrade.html", | |
309 "crd/html/dialog_client_pin_prompt.html", | |
310 "crd/html/dialog_client_session_finished.html", | |
311 "crd/html/dialog_client_third_party_auth.html", | |
312 "crd/html/dialog_client_unconnected.html", | |
313 "crd/html/dialog_confirm_host_delete.html", | |
314 "crd/html/dialog_connection_history.html", | |
315 "crd/html/dialog_host.html", | |
316 "crd/html/dialog_host_install.html", | |
317 "crd/html/dialog_host_setup.html", | |
318 "crd/html/dialog_manage_pairings.html", | |
319 "crd/html/dialog_token_refresh_failed.html", | |
320 "crd/html/toolbar.html", | |
321 "crd/html/ui_header.html", | |
322 "crd/html/ui_it2me.html", | |
323 "crd/html/ui_me2me.html", | |
324 "crd/html/window_frame.html", | |
325 ] | |
326 | |
327 # | |
328 # Webapp background.html generation files. | |
329 # | |
330 | |
331 remoting_webapp_template_background = | |
332 "<(DEPTH)/remoting/webapp/crd/html/template_background.html" | |
333 | |
334 # These JS files are specific to the background page and are not part of | |
335 # the main JS files. | |
336 remoting_webapp_background_html_js_files = [ | |
337 "webapp/base/js/message_window_helper.js", | |
338 "webapp/base/js/message_window_manager.js", | |
339 "webapp/crd/js/activation_handler.js", | |
340 "webapp/crd/js/app_launcher.js", | |
341 "webapp/crd/js/background.js", | |
342 ] | |
343 | |
344 # All the JavaScript files required by background.html. | |
345 remoting_webapp_background_html_all_js_files = [ | |
346 "<@(remoting_webapp_background_html_js_files)", | |
347 "webapp/base/js/base.js", | |
348 "webapp/base/js/ipc.js", | |
349 "webapp/crd/js/client_session.js", | |
350 "webapp/crd/js/error.js", | |
351 "webapp/crd/js/host_installer.js", | |
352 "webapp/crd/js/host_session.js", | |
353 "webapp/crd/js/identity.js", | |
354 "webapp/crd/js/it2me_host_facade.js", | |
355 "webapp/crd/js/l10n.js", | |
356 "webapp/crd/js/oauth2.js", | |
357 "webapp/crd/js/oauth2_api.js", | |
358 "webapp/crd/js/oauth2_api_impl.js", | |
359 "webapp/crd/js/plugin_settings.js", | |
360 "webapp/crd/js/typecheck.js", | |
361 "webapp/crd/js/xhr.js", | |
362 ] | |
363 | |
364 # | |
365 # Webapp wcs_sandbox.html generation files. | |
366 # | |
367 | |
368 remoting_webapp_template_wcs_sandbox = | |
369 "<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html" | |
370 | |
371 # These JS files are specific to the WCS sandbox page and are not part of | |
372 # the main JS files. | |
373 remoting_webapp_wcs_sandbox_html_js_files = [ | |
374 "crd/js/wcs.js", | |
375 "crd/js/wcs_loader.js", | |
376 "crd/js/wcs_sandbox_content.js", | |
377 "crd/js/xhr_proxy.js", | |
378 ] | |
379 | |
380 # All the JavaScript files required by wcs_sandbox.html. | |
381 remoting_webapp_wcs_sandbox_html_all_js_files = [ | |
382 "<@(remoting_webapp_wcs_sandbox_html_js_files)", | |
383 "crd/js/error.js", | |
384 "crd/js/plugin_settings.js", | |
385 ] | |
386 | |
387 # | |
388 # Webapp message_window.html generation files. | |
389 # | |
390 | |
391 remoting_webapp_template_message_window = | |
392 "<(DEPTH)/remoting/webapp/base/html/template_message_window.html" | |
393 | |
394 # These JS files are specific to the message window page and are not part of | |
395 # the main JS files. | |
396 remoting_webapp_message_window_html_js_files = | |
397 [ "webapp/base/js/message_window.js" ] | |
398 | |
399 # All the JavaScript files required by message_window.html. | |
400 remoting_webapp_message_window_html_all_js_files = [ | |
401 "<@(remoting_webapp_message_window_html_js_files)", | |
402 "webapp/base/js/base.js", | |
403 ] | |
404 | |
405 # | |
406 # Complete webapp JS and resource files. | |
407 # | |
408 | |
409 # All the JavaScript files that are shared by webapps. | |
410 remoting_webapp_shared_js_files = [ | |
411 "<@(remoting_webapp_shared_main_html_js_files)", | |
412 "<@(remoting_webapp_background_html_js_files)", | |
413 "<@(remoting_webapp_message_window_html_js_files)", | |
414 "<@(remoting_webapp_wcs_sandbox_html_js_files)", | |
415 | |
416 # JS files referenced in manifest.json. | |
417 "<@(remoting_webapp_js_auth_v1_files)", | |
418 ] | |
419 | |
420 # All the JavaScript files required by DesktopRemoting. | |
421 remoting_webapp_crd_js_files = [ | |
422 "<@(remoting_webapp_shared_js_files)", | |
423 "<@(remoting_webapp_crd_main_html_all_js_files)", | |
424 ] | |
425 | |
426 remoting_webapp_info_files = [ | |
427 "resources/chromoting16.webp", | |
428 "resources/chromoting48.webp", | |
429 "resources/chromoting128.webp", | |
430 ] | |
431 | |
432 # All the resource files required by DesktopRemoting. | |
433 remoting_webapp_resource_files = [ | |
434 "resources/disclosure_arrow_down.webp", | |
435 "resources/disclosure_arrow_right.webp", | |
436 "resources/drag.webp", | |
437 "resources/host_setup_instructions.webp", | |
438 "resources/icon_close.webp", | |
439 "resources/icon_cross.webp", | |
440 "resources/icon_disconnect.webp", | |
441 "resources/icon_fullscreen.webp", | |
442 "resources/icon_help.webp", | |
443 "resources/icon_host.webp", | |
444 "resources/icon_maximize_restore.webp", | |
445 "resources/icon_minimize.webp", | |
446 "resources/icon_options.webp", | |
447 "resources/icon_pencil.webp", | |
448 "resources/icon_warning.webp", | |
449 "resources/infographic_my_computers.webp", | |
450 "resources/infographic_remote_assistance.webp", | |
451 "resources/plus.webp", | |
452 "resources/reload.webp", | |
453 "resources/tick.webp", | |
454 "webapp/base/html/connection_stats.css", | |
455 "webapp/base/html/main.css", | |
456 "webapp/base/html/message_window.css", | |
457 "webapp/base/resources/open_sans.css", | |
458 "webapp/base/resources/open_sans.woff", | |
459 "webapp/base/resources/spinner.gif", | |
460 "webapp/crd/html/butter_bar.css", | |
461 "webapp/crd/html/toolbar.css", | |
462 "webapp/crd/html/menu_button.css", | |
463 "webapp/crd/html/window_frame.css", | |
464 "webapp/crd/resources/scale-to-fit.webp", | |
465 ] | |
466 | |
467 remoting_webapp_crd_files = [ | |
468 "<@(remoting_webapp_info_files)", | |
469 "<@(remoting_webapp_crd_js_files)", | |
470 "<@(remoting_webapp_resource_files)", | |
471 ] | |
472 | |
473 # Files that contain localizable strings. | |
474 desktop_remoting_webapp_localizable_files = [ | |
475 "webapp/crd/manifest.json.jinja2", | |
476 "<(remoting_webapp_template_background)", | |
477 "<(remoting_webapp_template_main)", | |
478 "<(remoting_webapp_template_message_window)", | |
479 "<(remoting_webapp_template_wcs_sandbox)", | |
480 "<@(remoting_webapp_template_files)", | |
481 "<@(remoting_webapp_crd_js_files)", | |
482 ] | |
OLD | NEW |