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.
7 # MM ,M9 .gP"Ya ,6"Yb. ,M""bMM `7MMpMMMb.pMMMb. .gP"Ya
8 # MMmmdM9 ,M' Yb 8) MM ,AP MM MM MM MM ,M' Yb
9 # MM YM. 8M"""""" ,pm9MM 8MI MM MM MM MM 8M""""""
10 # MM `Mb.YM. , 8M MM `Mb MM MM MM MM YM. ,
11 # .JMML. .JMM.`Mbmmd' `Moo9^Yo.`Wbmd"MML..JMML JMML JMML.`Mbmmd'
13 # Please keep this file in sync with remoting/remoting_webapp_files.gypi.
15 # Jscompile proto files.
16 # These provide type information for jscompile.
17 remoting_webapp_js_proto_files = [
18 "js_proto/chrome_proto.js",
19 "js_proto/chrome_cast_proto.js",
20 "js_proto/chrome_event_proto.js",
21 "js_proto/dom_proto.js",
22 "js_proto/remoting_proto.js",
26 # Webapp browsertest JavaScript files.
30 remoting_webapp_browsertest_js_files = [
31 "browser_test/browser_test.js",
32 "browser_test/bump_scroll_browser_test.js",
33 "browser_test/cancel_pin_browser_test.js",
34 "browser_test/invalid_pin_browser_test.js",
35 "browser_test/it2me_browser_test.js",
36 "browser_test/me2me_browser_test.js",
37 "browser_test/scrollbar_browser_test.js",
38 "browser_test/timeout_waiter.js",
39 "browser_test/unauthenticated_browser_test.js",
40 "browser_test/update_pin_browser_test.js",
44 remoting_webapp_browsertest_js_mock_files = [
45 "crd/js/mock_client_plugin.js",
46 "crd/js/mock_host_list_api.js",
47 "crd/js/mock_identity.js",
48 "crd/js/mock_oauth2_api.js",
49 "crd/js/mock_session_connector.js",
50 "crd/js/mock_signal_strategy.js",
52 remoting_webapp_browsertest_js_proto_files = [
53 "js_proto/sinon_proto.js",
54 "js_proto/test_proto.js",
55 "<@(remoting_webapp_js_proto_files)",
57 remoting_webapp_browsertest_all_js_files = [
58 "<@(remoting_webapp_browsertest_js_files)",
59 "<@(remoting_webapp_browsertest_js_mock_files)",
63 # Webapp unittest JavaScript files.
66 # These product files are excluded from our JavaScript unittest
67 remoting_webapp_unittests_exclude_js_files = [
68 # background.js is where the onLoad handler is defined, which
69 # makes it the entry point of the background page.
70 "crd/js/background.js",
73 # The unit test cases for the webapp
74 remoting_webapp_unittests_js_files = [
75 # TODO(jrw): Move spy_promise to base.
76 "unittests/spy_promise.js",
77 "unittests/spy_promise_unittest.js",
78 "base/js/base_unittest.js",
79 "base/js/base_event_hook_unittest.js",
80 "base/js/base_inherits_unittest.js",
81 "base/js/client_session_unittest.js",
82 "base/js/dns_blackhole_checker_unittest.js",
83 "base/js/error_unittest.js",
84 "base/js/fallback_signal_strategy_unittest.js",
85 "base/js/identity_unittest.js",
86 "base/js/ipc_unittest.js",
87 "base/js/l10n_unittest.js",
88 "base/js/protocol_extension_manager_unittest.js",
89 "base/js/typecheck_unittest.js",
90 "base/js/viewport_unittest.js",
91 "base/js/xhr_unittest.js",
92 "base/js/xmpp_connection_unittest.js",
93 "base/js/xmpp_login_handler_unittest.js",
94 "base/js/xmpp_stream_parser_unittest.js",
95 "crd/js/apps_v2_migration_unittest.js",
96 "crd/js/gcd_client_unittest.js",
97 "crd/js/gcd_client_with_mock_xhr_unittest.js",
98 "crd/js/host_controller_unittest.js",
99 "crd/js/host_daemon_facade_unittest.js",
100 "crd/js/host_table_entry_unittest.js",
101 "crd/js/menu_button_unittest.js",
102 "crd/js/mock_xhr_unittest.js",
104 remoting_webapp_unittests_js_mock_files = [
105 # Some proto files can be repurposed as simple mocks for the unittests.
106 # Note that some defs in chrome_proto are overwritten by chrome_mocks.
107 "crd/js/mock_host_daemon_facade.js",
108 "crd/js/mock_signal_strategy.js",
109 "js_proto/chrome_proto.js",
110 "js_proto/chrome_mocks.js",
111 "unittests/sinon_helpers.js",
112 "crd/js/mock_xhr.js",
115 # Prototypes for objects that are not mocked.
116 remoting_webapp_unittests_js_proto_files = [
117 "js_proto/chrome_cast_proto.js",
118 "js_proto/dom_proto.js",
119 "js_proto/remoting_proto.js",
120 "js_proto/qunit_proto.js",
121 "js_proto/sinon_proto.js",
123 remoting_webapp_unittests_all_js_files = [
124 "<@(remoting_webapp_unittests_js_files)",
125 "<@(remoting_webapp_unittests_js_mock_files)",
128 # All the files needed to run the unittests.
129 remoting_webapp_unittests_all_files = [
130 "crd/html/menu_button.css",
131 "<@(remoting_webapp_unittests_all_js_files)",
133 remoting_webapp_unittests_template_main = "crd/html/template_unittests.html"
136 # Shared webapp JavaScript file groups.
139 # Auth (Google account) JavaScript files.
140 remoting_webapp_shared_js_auth_google_files = [
141 "base/js/auth_init.js",
142 "base/js/identity.js",
144 "base/js/oauth2_api.js",
145 "base/js/oauth2_api_impl.js",
148 # Client JavaScript files.
149 remoting_webapp_shared_js_client_files = [
150 "base/js/activity.js",
151 "base/js/client_plugin.js",
152 "base/js/client_plugin_host_desktop_impl.js",
153 "base/js/client_plugin_impl.js",
154 "base/js/client_session.js",
155 "base/js/client_session_factory.js",
156 "base/js/clipboard.js",
157 "base/js/connected_view.js",
158 "base/js/connection_info.js",
159 "base/js/credentials_provider.js",
160 "base/js/host_desktop.js",
161 "base/js/smart_reconnector.js",
164 # Remoting core JavaScript files.
165 remoting_webapp_shared_js_core_files = [
166 "base/js/app_capabilities.js",
167 "base/js/application.js",
170 "base/js/modal_dialogs.js",
171 "base/js/platform.js",
172 "base/js/protocol_extension_manager.js",
173 "base/js/protocol_extension.js",
175 "base/js/plugin_settings.js",
176 "base/js/typecheck.js",
180 # Host JavaScript files.
181 remoting_webapp_shared_js_host_files = [
183 "base/js/host_settings.js",
186 # Logging and stats JavaScript files.
187 remoting_webapp_shared_js_logging_files = [
188 "base/js/format_iq.js",
189 "base/js/log_to_server.js",
190 "base/js/server_log_entry.js",
191 "base/js/stats_accumulator.js",
194 # Remoting signaling files.
195 remoting_webapp_shared_js_signaling_files = [
196 "base/js/dns_blackhole_checker.js",
197 "base/js/fallback_signal_strategy.js",
198 "base/js/signal_strategy.js",
199 "base/js/tcp_socket.js",
200 "base/js/wcs_adapter.js",
201 "base/js/wcs_sandbox_container.js",
202 "base/js/xmpp_connection.js",
203 "base/js/xmpp_login_handler.js",
204 "base/js/xmpp_stream_parser.js",
207 # UI JavaScript files.
208 remoting_webapp_shared_js_ui_files = [
209 "base/js/connection_stats.js",
211 "base/js/ui_mode.js",
212 "base/js/viewport.js",
213 "base/js/window_shape.js",
217 # DesktopRemoting webapp JavaScript file groups.
220 # Auth (apps v1) JavaScript files.
221 # These files aren"t included directly from main.html. They are
222 # referenced from the manifest.json file (appsv1 only).
223 remoting_webapp_js_auth_v1_files = [
224 "crd/js/cs_third_party_auth_trampoline.js", # client to host
225 "crd/js/cs_oauth2_trampoline.js", # Google account
228 # Auth (client to host) JavaScript files.
229 remoting_webapp_js_auth_client2host_files = [
230 "crd/js/third_party_host_permissions.js",
231 "crd/js/third_party_token_fetcher.js",
234 # Cast extension handler JavaScript files.
235 remoting_webapp_js_cast_extension_files = [ "crd/js/cast_extension_handler.js" ]
237 # Client JavaScript files.
238 remoting_webapp_js_client_files = [ "crd/js/video_frame_recorder.js" ]
240 # Remoting core JavaScript files.
241 remoting_webapp_js_core_files = [
242 "crd/js/apps_v2_migration.js",
243 "crd/js/event_handlers.js",
244 "crd/js/gcd_client.js",
247 # Gnubby authentication JavaScript files.
248 remoting_webapp_js_gnubby_auth_files = [ "crd/js/gnubby_auth_handler.js" ]
250 # Files for controlling the local machine as a host.
251 # Includes both it2me and me2me files.
252 remoting_webapp_js_host_control_files = [
253 "crd/js/host_controller.js",
254 "crd/js/host_daemon_facade.js",
255 "crd/js/host_screen.js",
256 "crd/js/host_session.js",
257 "crd/js/host_setup_dialog.js",
258 "crd/js/host_install_dialog.js",
259 "crd/js/host_installer.js",
260 "crd/js/it2me_host_facade.js",
261 "crd/js/paired_client_manager.js",
264 # Files for displaying (in the client) info about available hosts.
265 remoting_webapp_js_host_display_files = [
266 "crd/js/host_list.js",
267 "crd/js/host_list_api.js",
268 "crd/js/host_list_api_gcd_impl.js",
269 "crd/js/host_list_api_impl.js",
270 "crd/js/host_table_entry.js",
271 "crd/js/local_host_section.js",
274 # The CRD-specific JavaScript files required by main.html.
275 remoting_webapp_crd_js_ui_files = [
276 "crd/js/bump_scroller.js",
277 "crd/js/butter_bar.js",
278 "crd/js/crd_auth_dialog.js",
279 "crd/js/crd_event_handlers.js",
280 "crd/js/crd_experimental.js",
281 "crd/js/crd_main.js",
282 "crd/js/desktop_connected_view.js",
283 "crd/js/desktop_remoting.js",
284 "crd/js/desktop_remoting_activity.js",
285 "crd/js/desktop_viewport.js",
286 "crd/js/feedback.js",
287 "crd/js/fullscreen.js",
288 "crd/js/fullscreen_v1.js",
289 "crd/js/fullscreen_v2.js",
290 "crd/js/it2me_activity.js",
291 "crd/js/me2me_activity.js",
292 "crd/js/menu_button.js",
293 "crd/js/options_menu.js",
295 "crd/js/window_frame.js",
299 # DesktopRemoting main.html generation files.
302 remoting_webapp_template_main = "crd/html/template_main.html"
304 # The shared JavaScript files required by main.html.
305 remoting_webapp_shared_main_html_js_files =
306 # Include the core files first as it is required by the other files.
307 # Otherwise, Jscompile will complain.
308 remoting_webapp_shared_js_core_files +
309 remoting_webapp_shared_js_auth_google_files +
310 remoting_webapp_shared_js_client_files +
311 remoting_webapp_shared_js_host_files +
312 remoting_webapp_shared_js_logging_files +
313 remoting_webapp_shared_js_ui_files +
314 remoting_webapp_shared_js_signaling_files +
315 remoting_webapp_js_auth_client2host_files +
316 remoting_webapp_js_client_files + remoting_webapp_js_gnubby_auth_files +
317 remoting_webapp_js_cast_extension_files +
318 remoting_webapp_js_host_control_files +
319 remoting_webapp_js_host_display_files
321 # Uncomment this line to include browser test files in the web app
322 # to expedite debugging or local development.
323 #+ remoting_webapp_browsertest_all_js_files
325 # The CRD-specific JavaScript files required by main.html.
326 remoting_webapp_crd_main_html_all_js_files =
327 remoting_webapp_shared_main_html_js_files + remoting_webapp_crd_js_ui_files
329 # These template files are used to construct main.html.
330 remoting_webapp_template_files = [
331 "base/html/client_plugin.html",
332 "crd/html/butter_bar.html",
333 "crd/html/dialog_auth.html",
334 "crd/html/dialog_client_connect_failed.html",
335 "crd/html/dialog_client_connecting.html",
336 "crd/html/dialog_client_host_needs_upgrade.html",
337 "crd/html/dialog_client_pin_prompt.html",
338 "crd/html/dialog_client_session_finished.html",
339 "crd/html/dialog_client_third_party_auth.html",
340 "crd/html/dialog_client_unconnected.html",
341 "crd/html/dialog_confirm_host_delete.html",
342 "crd/html/dialog_connection_history.html",
343 "crd/html/dialog_host.html",
344 "crd/html/dialog_host_install.html",
345 "crd/html/dialog_host_setup.html",
346 "crd/html/dialog_manage_pairings.html",
347 "crd/html/dialog_token_refresh_failed.html",
348 "crd/html/toolbar.html",
349 "crd/html/ui_header.html",
350 "crd/html/ui_it2me.html",
351 "crd/html/ui_me2me.html",
352 "crd/html/window_frame.html",
356 # Webapp background.html generation files.
359 remoting_webapp_template_background = "crd/html/template_background.html"
361 # These JS files are specific to the background page and are not part of
363 remoting_webapp_background_html_js_files = [
364 "base/js/message_window_helper.js",
365 "base/js/message_window_manager.js",
366 "crd/js/activation_handler.js",
367 "crd/js/app_launcher.js",
368 "crd/js/background.js",
371 # All the JavaScript files required by background.html.
372 remoting_webapp_background_html_all_js_files =
373 remoting_webapp_background_html_js_files
374 remoting_webapp_background_html_all_js_files += [
376 "base/js/client_session.js",
378 "base/js/identity.js",
382 "base/js/oauth2_api.js",
383 "base/js/oauth2_api_impl.js",
384 "base/js/plugin_settings.js",
385 "base/js/typecheck.js",
387 "crd/js/host_installer.js",
388 "crd/js/host_session.js",
389 "crd/js/it2me_host_facade.js",
393 # Webapp wcs_sandbox.html generation files.
396 remoting_webapp_template_wcs_sandbox = "base/html/template_wcs_sandbox.html"
398 # These JS files are specific to the WCS sandbox page and are not part of
400 remoting_webapp_wcs_sandbox_html_js_files = [
402 "crd/js/wcs_loader.js",
403 "crd/js/wcs_sandbox_content.js",
404 "crd/js/xhr_proxy.js",
407 # All the JavaScript files required by wcs_sandbox.html.
408 remoting_webapp_wcs_sandbox_html_all_js_files =
409 remoting_webapp_wcs_sandbox_html_js_files
410 remoting_webapp_wcs_sandbox_html_all_js_files += [
412 "base/js/plugin_settings.js",
416 # Webapp message_window.html generation files.
419 remoting_webapp_template_message_window =
420 "base/html/template_message_window.html"
422 # These JS files are specific to the message window page and are not part of
424 remoting_webapp_message_window_html_js_files = [ "base/js/message_window.js" ]
426 # All the JavaScript files required by message_window.html.
427 remoting_webapp_message_window_html_all_js_files =
428 remoting_webapp_message_window_html_js_files + [ "base/js/base.js" ]
431 # Complete webapp JS and resource files.
434 # All the JavaScript files that are shared by webapps.
435 remoting_webapp_shared_js_files = remoting_webapp_shared_main_html_js_files +
436 remoting_webapp_background_html_js_files +
437 remoting_webapp_message_window_html_js_files +
438 remoting_webapp_wcs_sandbox_html_js_files +
439 # JS files referenced in manifest.json.
440 remoting_webapp_js_auth_v1_files
442 # All the JavaScript files required by DesktopRemoting.
443 remoting_webapp_crd_js_files =
444 remoting_webapp_shared_js_files + remoting_webapp_crd_main_html_all_js_files
446 remoting_webapp_info_files = [
447 "../resources/chromoting16.webp",
448 "../resources/chromoting48.webp",
449 "../resources/chromoting128.webp",
452 # All the resource files required by DesktopRemoting.
453 remoting_webapp_resource_files = [
454 "../resources/disclosure_arrow_down.webp",
455 "../resources/disclosure_arrow_right.webp",
456 "../resources/drag.webp",
457 "../resources/host_setup_instructions.webp",
458 "../resources/icon_close.webp",
459 "../resources/icon_cross.webp",
460 "../resources/icon_disconnect.webp",
461 "../resources/icon_fullscreen.webp",
462 "../resources/icon_help.webp",
463 "../resources/icon_host.webp",
464 "../resources/icon_maximize_restore.webp",
465 "../resources/icon_minimize.webp",
466 "../resources/icon_options.webp",
467 "../resources/icon_pencil.webp",
468 "../resources/icon_warning.webp",
469 "../resources/infographic_my_computers.webp",
470 "../resources/infographic_remote_assistance.webp",
471 "../resources/plus.webp",
472 "../resources/reload.webp",
473 "../resources/tick.webp",
474 "base/html/connection_stats.css",
475 "base/html/main.css",
476 "base/html/message_window.css",
477 "base/resources/open_sans.css",
478 "base/resources/open_sans.woff",
479 "base/resources/spinner.gif",
480 "crd/html/butter_bar.css",
481 "crd/html/toolbar.css",
482 "crd/html/menu_button.css",
483 "crd/html/window_frame.css",
484 "crd/resources/scale-to-fit.webp",
487 remoting_webapp_crd_files =
488 remoting_webapp_info_files + remoting_webapp_crd_js_files +
489 remoting_webapp_resource_files
491 # Files that contain localizable strings.
492 desktop_remoting_webapp_localizable_files = [
493 "webapp/crd/manifest.json.jinja2",
494 "<(remoting_webapp_template_background)",
495 "<(remoting_webapp_template_main)",
496 "<(remoting_webapp_template_message_window)",
497 "<(remoting_webapp_template_wcs_sandbox)",
498 "<@(remoting_webapp_template_files)",
499 "<@(remoting_webapp_crd_js_files)",