1 # Copyright 2014 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/webapp/files.gni.
18 # Jscompile proto files.
19 # These provide type information for jscompile.
20 'remoting_webapp_js_proto_files': [
21 'webapp/js_proto/chrome_proto.js',
22 'webapp/js_proto/chrome_cast_proto.js',
23 'webapp/js_proto/dom_proto.js',
24 'webapp/js_proto/remoting_proto.js',
28 # Webapp browsertest JavaScript files.
32 'remoting_webapp_browsertest_js_files': [
33 'webapp/browser_test/browser_test.js',
34 'webapp/browser_test/bump_scroll_browser_test.js',
35 'webapp/browser_test/cancel_pin_browser_test.js',
36 'webapp/browser_test/invalid_pin_browser_test.js',
37 'webapp/browser_test/it2me_browser_test.js',
38 'webapp/browser_test/me2me_browser_test.js',
39 'webapp/browser_test/scrollbar_browser_test.js',
40 'webapp/browser_test/timeout_waiter.js',
41 'webapp/browser_test/unauthenticated_browser_test.js',
42 'webapp/browser_test/update_pin_browser_test.js',
45 'remoting_webapp_browsertest_js_mock_files': [
46 'webapp/crd/js/mock_client_plugin.js',
47 'webapp/crd/js/mock_host_list_api.js',
48 'webapp/crd/js/mock_identity.js',
49 'webapp/crd/js/mock_oauth2_api.js',
50 'webapp/crd/js/mock_signal_strategy.js',
52 'remoting_webapp_browsertest_js_proto_files': [
53 'webapp/js_proto/sinon_proto.js',
54 'webapp/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)',
61 'remoting_webapp_browsertest_main_html_extra_files': [
62 '<@(remoting_webapp_browsertest_all_js_files)',
63 '../third_party/sinonjs/src/sinon.js',
67 # Webapp unittest JavaScript files.
70 # These product files are excluded from our JavaScript unittest
71 'remoting_webapp_unittests_exclude_js_files': [
72 # background.js is where the onLoad handler is defined, which
73 # makes it the entry point of the background page.
74 'webapp/crd/js/background.js',
76 # The unit test cases for the webapp
77 'remoting_webapp_unittests_js_files': [
78 # TODO(jrw): Move spy_promise to base.
79 'webapp/unittests/spy_promise.js',
80 'webapp/unittests/spy_promise_unittest.js',
81 'webapp/base/js/base_unittest.js',
82 'webapp/base/js/base_event_hook_unittest.js',
83 'webapp/base/js/base_inherits_unittest.js',
84 'webapp/base/js/client_session_unittest.js',
85 'webapp/base/js/client_session_factory_unittest.js',
86 'webapp/base/js/dns_blackhole_checker_unittest.js',
87 'webapp/base/js/error_unittest.js',
88 'webapp/base/js/fallback_signal_strategy_unittest.js',
89 'webapp/base/js/identity_unittest.js',
90 'webapp/base/js/ipc_unittest.js',
91 'webapp/base/js/l10n_unittest.js',
92 'webapp/base/js/protocol_extension_manager_unittest.js',
93 'webapp/base/js/typecheck_unittest.js',
94 'webapp/base/js/viewport_unittest.js',
95 'webapp/base/js/window_shape_unittest.js',
96 'webapp/base/js/xhr_unittest.js',
97 'webapp/base/js/xmpp_connection_unittest.js',
98 'webapp/base/js/xmpp_login_handler_unittest.js',
99 'webapp/base/js/xmpp_stream_parser_unittest.js',
100 'webapp/crd/js/apps_v2_migration_unittest.js',
101 'webapp/crd/js/gcd_client_unittest.js',
102 'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
103 'webapp/crd/js/host_controller_unittest.js',
104 'webapp/crd/js/host_daemon_facade_unittest.js',
105 'webapp/crd/js/host_list_api_impl_unittest.js',
106 'webapp/crd/js/host_table_entry_unittest.js',
107 'webapp/crd/js/menu_button_unittest.js',
108 'webapp/crd/js/mock_xhr_unittest.js',
110 'remoting_webapp_unittests_js_mock_files': [
111 'webapp/crd/js/mock_client_plugin.js',
112 'webapp/crd/js/mock_host_daemon_facade.js',
113 'webapp/crd/js/mock_host_list_api.js',
114 'webapp/crd/js/mock_identity.js',
115 'webapp/crd/js/mock_signal_strategy.js',
116 'webapp/js_proto/chrome_mocks.js',
117 'webapp/unittests/sinon_helpers.js',
118 'webapp/crd/js/mock_xhr.js',
120 # Prototypes for objects that are not mocked.
121 'remoting_webapp_unittests_js_proto_files': [
122 'webapp/js_proto/chrome_cast_proto.js',
123 'webapp/js_proto/chrome_proto.js',
124 'webapp/js_proto/dom_proto.js',
125 'webapp/js_proto/remoting_proto.js',
126 'webapp/js_proto/qunit_proto.js',
127 'webapp/js_proto/sinon_proto.js',
129 'remoting_webapp_unittests_all_js_files': [
130 '<@(remoting_webapp_unittests_js_files)',
131 '<@(remoting_webapp_unittests_js_mock_files)',
132 'webapp/unittests/qunit_callbacks.js',
134 # All the files needed to run the unittests.
135 'remoting_webapp_unittests_all_files': [
136 'webapp/crd/html/menu_button.css',
137 '<@(remoting_webapp_unittests_all_js_files)',
139 'remoting_webapp_unittests_template_main':
140 'webapp/crd/html/template_unittests.html',
143 # Shared webapp JavaScript file groups.
146 # Auth (Google account) JavaScript files.
147 'remoting_webapp_shared_js_auth_google_files': [
148 'webapp/base/js/auth_init.js',
149 'webapp/base/js/identity.js',
150 'webapp/base/js/oauth2.js',
151 'webapp/base/js/oauth2_api.js',
152 'webapp/base/js/oauth2_api_impl.js',
154 # Client JavaScript files.
155 'remoting_webapp_shared_js_client_files': [
156 'webapp/base/js/activity.js',
157 'webapp/base/js/client_plugin.js',
158 'webapp/base/js/client_plugin_host_desktop_impl.js',
159 'webapp/base/js/client_plugin_impl.js',
160 'webapp/base/js/client_session.js',
161 'webapp/base/js/client_session_factory.js',
162 'webapp/base/js/clipboard.js',
163 'webapp/base/js/connected_view.js',
164 'webapp/base/js/connection_info.js',
165 'webapp/base/js/credentials_provider.js',
166 'webapp/base/js/host_desktop.js',
167 'webapp/base/js/smart_reconnector.js',
169 # Remoting core JavaScript files.
170 'remoting_webapp_shared_js_core_files': [
171 'webapp/base/js/app_capabilities.js',
172 'webapp/base/js/application.js',
173 'webapp/base/js/base.js',
174 'webapp/base/js/ipc.js',
175 'webapp/base/js/modal_dialogs.js',
176 'webapp/base/js/platform.js',
177 'webapp/base/js/protocol_extension_manager.js',
178 'webapp/base/js/protocol_extension.js',
179 'webapp/base/js/error.js',
180 'webapp/base/js/plugin_settings.js',
181 'webapp/base/js/suspend_detector.js',
182 'webapp/base/js/typecheck.js',
183 'webapp/base/js/xhr.js',
185 # Host JavaScript files.
186 'remoting_webapp_shared_js_host_files': [
187 'webapp/base/js/host.js',
188 'webapp/base/js/host_settings.js',
190 # Logging and stats JavaScript files.
191 'remoting_webapp_shared_js_logging_files': [
192 'webapp/base/js/format_iq.js',
193 'webapp/base/js/log_to_server.js',
194 'webapp/base/js/server_log_entry.js',
195 'webapp/base/js/stats_accumulator.js',
197 # Remoting signaling files.
198 'remoting_webapp_shared_js_signaling_files': [
199 'webapp/base/js/dns_blackhole_checker.js',
200 'webapp/base/js/fallback_signal_strategy.js',
201 'webapp/base/js/signal_strategy.js',
202 'webapp/base/js/tcp_socket.js',
203 'webapp/base/js/wcs_adapter.js',
204 'webapp/base/js/wcs_sandbox_container.js',
205 'webapp/base/js/xmpp_connection.js',
206 'webapp/base/js/xmpp_login_handler.js',
207 'webapp/base/js/xmpp_stream_parser.js',
209 # Shared UI JavaScript files.
210 'remoting_webapp_shared_js_ui_files': [
211 'webapp/base/js/connection_dropped_dialog.js',
212 'webapp/base/js/connection_stats.js',
213 'webapp/base/js/l10n.js',
214 'webapp/base/js/ui_mode.js',
215 'webapp/base/js/viewport.js',
216 'webapp/base/js/window_shape.js',
220 # DesktopRemoting webapp JavaScript file groups.
223 # Auth (apps v1) JavaScript files.
224 # These files aren't included directly from main.html. They are
225 # referenced from the manifest.json file (appsv1 only).
226 'remoting_webapp_js_auth_v1_files': [
227 'webapp/crd/js/cs_third_party_auth_trampoline.js', # client to host
228 'webapp/crd/js/cs_oauth2_trampoline.js', # Google account
230 # Auth (client to host) JavaScript files.
231 'remoting_webapp_js_auth_client2host_files': [
232 'webapp/crd/js/third_party_host_permissions.js',
233 'webapp/crd/js/third_party_token_fetcher.js',
235 # Cast extension handler JavaScript files.
236 'remoting_webapp_js_cast_extension_files': [
237 'webapp/crd/js/cast_extension_handler.js',
239 # Client JavaScript files.
240 'remoting_webapp_js_client_files': [
241 'webapp/crd/js/apps_v2_migration.js',
242 'webapp/crd/js/event_handlers.js',
243 'webapp/crd/js/gcd_client.js',
244 'webapp/crd/js/video_frame_recorder.js',
246 # Gnubby authentication JavaScript files.
247 'remoting_webapp_js_gnubby_auth_files': [
248 'webapp/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 'webapp/crd/js/host_controller.js',
254 'webapp/crd/js/host_daemon_facade.js',
255 'webapp/crd/js/host_screen.js',
256 'webapp/crd/js/host_session.js',
257 'webapp/crd/js/host_setup_dialog.js',
258 'webapp/crd/js/host_install_dialog.js',
259 'webapp/crd/js/host_installer.js',
260 'webapp/crd/js/it2me_host_facade.js',
261 'webapp/crd/js/paired_client_manager.js',
263 # Files for displaying (in the client) info about available hosts.
264 'remoting_webapp_js_host_display_files': [
265 'webapp/crd/js/host_list.js',
266 'webapp/crd/js/host_list_api.js',
267 'webapp/crd/js/host_list_api_gcd_impl.js',
268 'webapp/crd/js/host_list_api_impl.js',
269 'webapp/crd/js/host_table_entry.js',
270 'webapp/crd/js/local_host_section.js',
272 # The CRD-specific JavaScript files required by main.html.
273 'remoting_webapp_crd_js_ui_files': [
274 'webapp/crd/js/bump_scroller.js',
275 'webapp/crd/js/butter_bar.js',
276 'webapp/crd/js/crd_auth_dialog.js',
277 'webapp/crd/js/crd_event_handlers.js',
278 'webapp/crd/js/crd_experimental.js',
279 'webapp/crd/js/desktop_connected_view.js',
280 'webapp/crd/js/desktop_remoting.js',
281 'webapp/crd/js/desktop_remoting_activity.js',
282 'webapp/crd/js/desktop_viewport.js',
283 'webapp/crd/js/feedback.js',
284 'webapp/crd/js/fullscreen.js',
285 'webapp/crd/js/fullscreen_v1.js',
286 'webapp/crd/js/fullscreen_v2.js',
287 'webapp/crd/js/it2me_activity.js',
288 'webapp/crd/js/me2me_activity.js',
289 'webapp/crd/js/menu_button.js',
290 'webapp/crd/js/options_menu.js',
291 'webapp/crd/js/toolbar.js',
292 'webapp/crd/js/window_frame.js',
296 # DesktopRemoting main.html generation files.
299 'remoting_webapp_template_main':
300 '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
302 # The shared JavaScript files required by main.html.
303 # These files are shared with the unittest target.
304 'remoting_webapp_shared_main_html_js_files': [
305 # Include the core files first as it is required by the other files.
306 # Otherwise, Jscompile will complain.
307 '<@(remoting_webapp_shared_js_core_files)',
308 '<@(remoting_webapp_shared_js_auth_google_files)',
309 '<@(remoting_webapp_shared_js_client_files)',
310 '<@(remoting_webapp_shared_js_host_files)',
311 '<@(remoting_webapp_shared_js_logging_files)',
312 '<@(remoting_webapp_shared_js_signaling_files)',
313 '<@(remoting_webapp_shared_js_ui_files)',
314 '<@(remoting_webapp_js_auth_client2host_files)',
315 '<@(remoting_webapp_js_client_files)',
316 '<@(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)',
322 # The JS files required by unittest.html.
323 'remoting_webapp_unittest_html_all_js_files': [
324 '<@(remoting_webapp_shared_main_html_js_files)',
325 '<@(remoting_webapp_crd_js_ui_files)',
328 # The CRD-specific JavaScript files required by main.html.
329 'remoting_webapp_crd_main_html_all_js_files': [
330 '<@(remoting_webapp_shared_main_html_js_files)',
331 '<@(remoting_webapp_crd_js_ui_files)',
332 'webapp/crd/js/crd_main.js',
335 # These template files are used to construct main.html.
336 'remoting_webapp_template_files': [
337 'webapp/base/html/client_plugin.html',
338 'webapp/crd/html/butter_bar.html',
339 'webapp/crd/html/dialog_auth.html',
340 'webapp/crd/html/dialog_client_connect_failed.html',
341 'webapp/crd/html/dialog_client_connecting.html',
342 'webapp/crd/html/dialog_client_host_needs_upgrade.html',
343 'webapp/crd/html/dialog_client_pin_prompt.html',
344 'webapp/crd/html/dialog_client_session_finished.html',
345 'webapp/crd/html/dialog_client_third_party_auth.html',
346 'webapp/crd/html/dialog_client_unconnected.html',
347 'webapp/crd/html/dialog_confirm_host_delete.html',
348 'webapp/crd/html/dialog_connection_history.html',
349 'webapp/crd/html/dialog_host.html',
350 'webapp/crd/html/dialog_host_install.html',
351 'webapp/crd/html/dialog_host_setup.html',
352 'webapp/crd/html/dialog_manage_pairings.html',
353 'webapp/crd/html/dialog_token_refresh_failed.html',
354 'webapp/crd/html/toolbar.html',
355 'webapp/crd/html/ui_header.html',
356 'webapp/crd/html/ui_it2me.html',
357 'webapp/crd/html/ui_me2me.html',
358 'webapp/crd/html/window_frame.html',
362 # Webapp background.html generation files.
365 'remoting_webapp_template_background':
366 '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
368 # These JS files are specific to the background page and are not part of
370 'remoting_webapp_background_html_js_files': [
371 'webapp/base/js/message_window_helper.js',
372 'webapp/base/js/message_window_manager.js',
373 'webapp/crd/js/activation_handler.js',
374 'webapp/crd/js/app_launcher.js',
375 'webapp/crd/js/background.js',
378 # All the JavaScript files required by background.html.
379 'remoting_webapp_background_html_all_js_files': [
380 '<@(remoting_webapp_background_html_js_files)',
381 'webapp/base/js/base.js',
382 'webapp/base/js/client_session.js',
383 'webapp/base/js/error.js',
384 'webapp/base/js/identity.js',
385 'webapp/base/js/ipc.js',
386 'webapp/base/js/l10n.js',
387 'webapp/base/js/oauth2.js',
388 'webapp/base/js/oauth2_api.js',
389 'webapp/base/js/oauth2_api_impl.js',
390 'webapp/base/js/plugin_settings.js',
391 'webapp/base/js/typecheck.js',
392 'webapp/base/js/xhr.js',
393 'webapp/crd/js/host_installer.js',
394 'webapp/crd/js/host_session.js',
395 'webapp/crd/js/it2me_host_facade.js',
399 # Webapp wcs_sandbox.html generation files.
402 'remoting_webapp_template_wcs_sandbox':
403 '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
405 # These JS files are specific to the WCS sandbox page and are not part of
407 'remoting_webapp_wcs_sandbox_html_js_files': [
408 'webapp/crd/js/wcs.js',
409 'webapp/crd/js/wcs_loader.js',
410 'webapp/crd/js/wcs_sandbox_content.js',
411 'webapp/crd/js/xhr_proxy.js',
414 # All the JavaScript files required by wcs_sandbox.html.
415 'remoting_webapp_wcs_sandbox_html_all_js_files': [
416 '<@(remoting_webapp_wcs_sandbox_html_js_files)',
417 'webapp/base/js/error.js',
418 'webapp/base/js/plugin_settings.js',
422 # Webapp message_window.html generation files.
425 'remoting_webapp_template_message_window':
426 '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
428 # These JS files are specific to the message window page and are not part of
430 'remoting_webapp_message_window_html_js_files': [
431 'webapp/base/js/message_window.js',
434 # All the JavaScript files required by message_window.html.
435 'remoting_webapp_message_window_html_all_js_files': [
436 '<@(remoting_webapp_message_window_html_js_files)',
437 'webapp/base/js/base.js',
441 # Complete webapp JS and resource files.
444 # All the JavaScript files that are shared by webapps.
445 'remoting_webapp_shared_js_files': [
446 '<@(remoting_webapp_shared_main_html_js_files)',
447 '<@(remoting_webapp_background_html_js_files)',
448 '<@(remoting_webapp_message_window_html_js_files)',
449 '<@(remoting_webapp_wcs_sandbox_html_js_files)',
450 # JS files referenced in manifest.json.
451 '<@(remoting_webapp_js_auth_v1_files)',
454 # All the JavaScript files required by DesktopRemoting.
455 'remoting_webapp_crd_js_files': [
456 '<@(remoting_webapp_shared_js_files)',
457 '<@(remoting_webapp_crd_main_html_all_js_files)',
460 'remoting_webapp_info_files': [
461 'resources/chromoting16.webp',
462 'resources/chromoting48.webp',
463 'resources/chromoting128.webp',
466 # All the resource files required by DesktopRemoting.
467 'remoting_webapp_resource_files': [
468 'resources/disclosure_arrow_down.webp',
469 'resources/disclosure_arrow_right.webp',
470 'resources/drag.webp',
471 'resources/host_setup_instructions.webp',
472 'resources/icon_close.webp',
473 'resources/icon_cross.webp',
474 'resources/icon_disconnect.webp',
475 'resources/icon_fullscreen.webp',
476 'resources/icon_help.webp',
477 'resources/icon_host.webp',
478 'resources/icon_maximize_restore.webp',
479 'resources/icon_minimize.webp',
480 'resources/icon_options.webp',
481 'resources/icon_pencil.webp',
482 'resources/icon_warning.webp',
483 'resources/infographic_my_computers.webp',
484 'resources/infographic_remote_assistance.webp',
485 'resources/plus.webp',
486 'resources/reload.webp',
487 'resources/tick.webp',
488 'webapp/base/html/connection_stats.css',
489 'webapp/base/html/main.css',
490 'webapp/base/html/message_window.css',
491 'webapp/base/resources/open_sans.css',
492 'webapp/base/resources/open_sans.woff',
493 'webapp/base/resources/spinner.gif',
494 'webapp/crd/html/butter_bar.css',
495 'webapp/crd/html/toolbar.css',
496 'webapp/crd/html/menu_button.css',
497 'webapp/crd/html/window_frame.css',
498 'webapp/crd/resources/scale-to-fit.webp',
501 'remoting_webapp_crd_files': [
502 '<@(remoting_webapp_info_files)',
503 '<@(remoting_webapp_crd_js_files)',
504 '<@(remoting_webapp_resource_files)',
507 # Files that contain localizable strings.
508 'desktop_remoting_webapp_localizable_files': [
509 'webapp/crd/manifest.json.jinja2',
510 '<(remoting_webapp_template_background)',
511 '<(remoting_webapp_template_main)',
512 '<(remoting_webapp_template_message_window)',
513 '<(remoting_webapp_template_wcs_sandbox)',
514 '<@(remoting_webapp_template_files)',
515 '<@(remoting_webapp_crd_js_files)',