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/chrome_event_proto.js',
24 'webapp/js_proto/dom_proto.js',
25 'webapp/js_proto/remoting_proto.js',
29 # Webapp browsertest JavaScript files.
33 'remoting_webapp_browsertest_js_files': [
34 'webapp/browser_test/browser_test.js',
35 'webapp/browser_test/bump_scroll_browser_test.js',
36 'webapp/browser_test/cancel_pin_browser_test.js',
37 'webapp/browser_test/invalid_pin_browser_test.js',
38 'webapp/browser_test/it2me_browser_test.js',
39 'webapp/browser_test/me2me_browser_test.js',
40 'webapp/browser_test/scrollbar_browser_test.js',
41 'webapp/browser_test/timeout_waiter.js',
42 'webapp/browser_test/unauthenticated_browser_test.js',
43 'webapp/browser_test/update_pin_browser_test.js',
46 'remoting_webapp_browsertest_js_mock_files': [
47 'webapp/crd/js/mock_client_plugin.js',
48 'webapp/crd/js/mock_host_list_api.js',
49 'webapp/crd/js/mock_identity.js',
50 'webapp/crd/js/mock_oauth2_api.js',
51 'webapp/crd/js/mock_signal_strategy.js',
53 'remoting_webapp_browsertest_js_proto_files': [
54 'webapp/js_proto/sinon_proto.js',
55 'webapp/js_proto/test_proto.js',
56 '<@(remoting_webapp_js_proto_files)',
58 'remoting_webapp_browsertest_all_js_files': [
59 '<@(remoting_webapp_browsertest_js_files)',
60 '<@(remoting_webapp_browsertest_js_mock_files)',
62 'remoting_webapp_browsertest_main_html_extra_files': [
63 '<@(remoting_webapp_browsertest_all_js_files)',
64 '../third_party/sinonjs/src/sinon.js',
68 # Webapp unittest JavaScript files.
71 # These product files are excluded from our JavaScript unittest
72 'remoting_webapp_unittests_exclude_js_files': [
73 # background.js is where the onLoad handler is defined, which
74 # makes it the entry point of the background page.
75 'webapp/crd/js/background.js',
77 # The unit test cases for the webapp
78 'remoting_webapp_unittests_js_files': [
79 # TODO(jrw): Move spy_promise to base.
80 'webapp/unittests/spy_promise.js',
81 'webapp/unittests/spy_promise_unittest.js',
82 'webapp/base/js/base_unittest.js',
83 'webapp/base/js/base_event_hook_unittest.js',
84 'webapp/base/js/base_inherits_unittest.js',
85 'webapp/base/js/ipc_unittest.js',
86 'webapp/base/js/protocol_extension_manager_unittest.js',
87 'webapp/base/js/viewport_unittest.js',
88 'webapp/crd/js/apps_v2_migration_unittest.js',
89 'webapp/crd/js/client_session_unittest.js',
90 'webapp/crd/js/client_session_factory_unittest.js',
91 'webapp/crd/js/dns_blackhole_checker_unittest.js',
92 'webapp/crd/js/error_unittest.js',
93 'webapp/crd/js/fallback_signal_strategy_unittest.js',
94 'webapp/crd/js/gcd_client_unittest.js',
95 'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
96 'webapp/crd/js/host_controller_unittest.js',
97 'webapp/crd/js/host_daemon_facade_unittest.js',
98 'webapp/crd/js/host_list_api_impl_unittest.js',
99 'webapp/crd/js/host_table_entry_unittest.js',
100 'webapp/crd/js/identity_unittest.js',
101 'webapp/crd/js/l10n_unittest.js',
102 'webapp/crd/js/menu_button_unittest.js',
103 'webapp/crd/js/mock_xhr_unittest.js',
104 'webapp/crd/js/typecheck_unittest.js',
105 'webapp/crd/js/xhr_unittest.js',
106 'webapp/crd/js/xmpp_connection_unittest.js',
107 'webapp/crd/js/xmpp_login_handler_unittest.js',
108 'webapp/crd/js/xmpp_stream_parser_unittest.js',
110 'remoting_webapp_unittests_js_mock_files': [
111 # Some proto files can be repurposed as simple mocks for the unittests.
112 # Note that some defs in chrome_proto are overwritten by chrome_mocks.
113 'webapp/crd/js/mock_client_plugin.js',
114 'webapp/crd/js/mock_host_daemon_facade.js',
115 'webapp/crd/js/mock_host_list_api.js',
116 'webapp/crd/js/mock_identity.js',
117 'webapp/crd/js/mock_signal_strategy.js',
118 'webapp/js_proto/chrome_proto.js',
119 'webapp/js_proto/chrome_mocks.js',
120 'webapp/unittests/sinon_helpers.js',
121 'webapp/crd/js/mock_xhr.js',
123 # Prototypes for objects that are not mocked.
124 'remoting_webapp_unittests_js_proto_files': [
125 'webapp/js_proto/chrome_cast_proto.js',
126 'webapp/js_proto/dom_proto.js',
127 'webapp/js_proto/remoting_proto.js',
128 'webapp/js_proto/qunit_proto.js',
129 'webapp/js_proto/sinon_proto.js',
131 'remoting_webapp_unittests_all_js_files': [
132 '<@(remoting_webapp_unittests_js_files)',
133 '<@(remoting_webapp_unittests_js_mock_files)',
135 # All the files needed to run the unittests.
136 'remoting_webapp_unittests_all_files': [
137 'webapp/crd/html/menu_button.css',
138 '<@(remoting_webapp_unittests_all_js_files)',
140 'remoting_webapp_unittests_template_main':
141 'webapp/crd/html/template_unittests.html',
144 # Webapp JavaScript file groups.
147 # Auth (apps v1) JavaScript files.
148 # These files aren't included directly from main.html. They are
149 # referenced from the manifest.json file (appsv1 only).
150 'remoting_webapp_js_auth_v1_files': [
151 'webapp/crd/js/cs_third_party_auth_trampoline.js', # client to host
152 'webapp/crd/js/cs_oauth2_trampoline.js', # Google account
154 # Auth (client to host) JavaScript files.
155 'remoting_webapp_js_auth_client2host_files': [
156 'webapp/crd/js/third_party_host_permissions.js',
157 'webapp/crd/js/third_party_token_fetcher.js',
159 # Auth (Google account) JavaScript files.
160 'remoting_webapp_js_auth_google_files': [
161 'webapp/base/js/auth_init.js',
162 'webapp/crd/js/identity.js',
163 'webapp/crd/js/oauth2.js',
164 'webapp/crd/js/oauth2_api.js',
165 'webapp/crd/js/oauth2_api_impl.js',
167 # Cast extension handler JavaScript files.
168 'remoting_webapp_js_cast_extension_files': [
169 'webapp/crd/js/cast_extension_handler.js',
171 # Client JavaScript files.
172 'remoting_webapp_js_client_files': [
173 'webapp/crd/js/activity.js',
174 'webapp/crd/js/client_plugin.js',
175 'webapp/crd/js/client_plugin_impl.js',
176 'webapp/crd/js/client_plugin_host_desktop_impl.js',
177 'webapp/crd/js/client_session.js',
178 'webapp/crd/js/client_session_factory.js',
179 'webapp/crd/js/clipboard.js',
180 'webapp/crd/js/connected_view.js',
181 'webapp/crd/js/connection_info.js',
182 'webapp/crd/js/credentials_provider.js',
183 'webapp/crd/js/host_desktop.js',
184 'webapp/crd/js/smart_reconnector.js',
185 'webapp/crd/js/video_frame_recorder.js',
187 # Remoting core JavaScript files.
188 'remoting_webapp_js_core_files': [
189 'webapp/base/js/app_capabilities.js',
190 'webapp/base/js/application.js',
191 'webapp/base/js/base.js',
192 'webapp/base/js/ipc.js',
193 'webapp/base/js/modal_dialogs.js',
194 'webapp/base/js/platform.js',
195 'webapp/base/js/protocol_extension_manager.js',
196 'webapp/base/js/protocol_extension.js',
197 'webapp/crd/js/apps_v2_migration.js',
198 'webapp/crd/js/error.js',
199 'webapp/crd/js/event_handlers.js',
200 'webapp/crd/js/plugin_settings.js',
201 'webapp/crd/js/typecheck.js',
202 'webapp/crd/js/xhr.js',
203 'webapp/crd/js/gcd_client.js',
205 # Gnubby authentication JavaScript files.
206 'remoting_webapp_js_gnubby_auth_files': [
207 'webapp/crd/js/gnubby_auth_handler.js',
209 # Host JavaScript files.
210 'remoting_webapp_js_host_files': [
211 'webapp/crd/js/host.js',
212 'webapp/crd/js/host_settings.js',
214 # Files for controlling the local machine as a host.
215 # Includes both it2me and me2me files.
216 'remoting_webapp_js_host_control_files': [
217 'webapp/crd/js/host_controller.js',
218 'webapp/crd/js/host_daemon_facade.js',
219 'webapp/crd/js/host_screen.js',
220 'webapp/crd/js/host_session.js',
221 'webapp/crd/js/host_setup_dialog.js',
222 'webapp/crd/js/host_install_dialog.js',
223 'webapp/crd/js/host_installer.js',
224 'webapp/crd/js/it2me_host_facade.js',
225 'webapp/crd/js/paired_client_manager.js',
227 # Files for displaying (in the client) info about available hosts.
228 'remoting_webapp_js_host_display_files': [
229 'webapp/crd/js/host_list.js',
230 'webapp/crd/js/host_list_api.js',
231 'webapp/crd/js/host_list_api_gcd_impl.js',
232 'webapp/crd/js/host_list_api_impl.js',
233 'webapp/crd/js/host_table_entry.js',
234 'webapp/crd/js/local_host_section.js',
236 # Logging and stats JavaScript files.
237 'remoting_webapp_js_logging_files': [
238 'webapp/crd/js/format_iq.js',
239 'webapp/crd/js/log_to_server.js',
240 'webapp/crd/js/server_log_entry.js',
241 'webapp/crd/js/stats_accumulator.js',
243 # Remoting signaling files.
244 'remoting_webapp_js_signaling_files': [
245 'webapp/crd/js/dns_blackhole_checker.js',
246 'webapp/crd/js/fallback_signal_strategy.js',
247 'webapp/crd/js/signal_strategy.js',
248 'webapp/crd/js/tcp_socket.js',
249 'webapp/crd/js/wcs_adapter.js',
250 'webapp/crd/js/wcs_sandbox_container.js',
251 'webapp/crd/js/xmpp_connection.js',
252 'webapp/crd/js/xmpp_login_handler.js',
253 'webapp/crd/js/xmpp_stream_parser.js',
255 # Shared UI JavaScript files.
256 'remoting_webapp_js_ui_files': [
257 'webapp/base/js/viewport.js',
258 'webapp/base/js/window_shape.js',
259 'webapp/crd/js/connection_stats.js',
260 'webapp/crd/js/feedback.js',
261 'webapp/crd/js/l10n.js',
262 'webapp/crd/js/ui_mode.js',
266 # DesktopRemoting-specific JS files.
269 # The CRD-specific JavaScript files required by main.html.
270 'remoting_webapp_crd_js_ui_files': [
271 'webapp/crd/js/bump_scroller.js',
272 'webapp/crd/js/butter_bar.js',
273 'webapp/crd/js/crd_auth_dialog.js',
274 'webapp/crd/js/crd_event_handlers.js',
275 'webapp/crd/js/crd_experimental.js',
276 'webapp/crd/js/desktop_connected_view.js',
277 'webapp/crd/js/desktop_remoting.js',
278 'webapp/crd/js/desktop_remoting_activity.js',
279 'webapp/crd/js/desktop_viewport.js',
280 'webapp/crd/js/fullscreen.js',
281 'webapp/crd/js/fullscreen_v1.js',
282 'webapp/crd/js/fullscreen_v2.js',
283 'webapp/crd/js/it2me_activity.js',
284 'webapp/crd/js/me2me_activity.js',
285 'webapp/crd/js/menu_button.js',
286 'webapp/crd/js/options_menu.js',
287 'webapp/crd/js/toolbar.js',
288 'webapp/crd/js/window_frame.js',
292 # DesktopRemoting main.html generation files.
295 'remoting_webapp_template_main':
296 '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
298 # The shared JavaScript files required by main.html.
299 'remoting_webapp_shared_main_html_js_files': [
300 # Include the core files first as it is required by the other files.
301 # Otherwise, Jscompile will complain.
302 '<@(remoting_webapp_js_core_files)',
303 '<@(remoting_webapp_js_auth_client2host_files)',
304 '<@(remoting_webapp_js_auth_google_files)',
305 '<@(remoting_webapp_js_client_files)',
306 '<@(remoting_webapp_js_gnubby_auth_files)',
307 '<@(remoting_webapp_js_cast_extension_files)',
308 '<@(remoting_webapp_js_host_files)',
309 '<@(remoting_webapp_js_host_control_files)',
310 '<@(remoting_webapp_js_host_display_files)',
311 '<@(remoting_webapp_js_logging_files)',
312 '<@(remoting_webapp_js_ui_files)',
313 '<@(remoting_webapp_js_signaling_files)',
316 # The JS files required by unittest.html.
317 'remoting_webapp_unittest_html_all_js_files': [
318 '<@(remoting_webapp_shared_main_html_js_files)',
319 '<@(remoting_webapp_crd_js_ui_files)',
322 # The CRD-specific JavaScript files required by main.html.
323 'remoting_webapp_crd_main_html_all_js_files': [
324 '<@(remoting_webapp_shared_main_html_js_files)',
325 '<@(remoting_webapp_crd_js_ui_files)',
326 'webapp/crd/js/crd_main.js',
329 # These template files are used to construct main.html.
330 'remoting_webapp_template_files': [
331 'webapp/base/html/client_plugin.html',
332 'webapp/crd/html/butter_bar.html',
333 'webapp/crd/html/dialog_auth.html',
334 'webapp/crd/html/dialog_client_connect_failed.html',
335 'webapp/crd/html/dialog_client_connecting.html',
336 'webapp/crd/html/dialog_client_host_needs_upgrade.html',
337 'webapp/crd/html/dialog_client_pin_prompt.html',
338 'webapp/crd/html/dialog_client_session_finished.html',
339 'webapp/crd/html/dialog_client_third_party_auth.html',
340 'webapp/crd/html/dialog_client_unconnected.html',
341 'webapp/crd/html/dialog_confirm_host_delete.html',
342 'webapp/crd/html/dialog_connection_history.html',
343 'webapp/crd/html/dialog_host.html',
344 'webapp/crd/html/dialog_host_install.html',
345 'webapp/crd/html/dialog_host_setup.html',
346 'webapp/crd/html/dialog_manage_pairings.html',
347 'webapp/crd/html/dialog_token_refresh_failed.html',
348 'webapp/crd/html/toolbar.html',
349 'webapp/crd/html/ui_header.html',
350 'webapp/crd/html/ui_it2me.html',
351 'webapp/crd/html/ui_me2me.html',
352 'webapp/crd/html/window_frame.html',
356 # Webapp background.html generation files.
359 'remoting_webapp_template_background':
360 '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
362 # These JS files are specific to the background page and are not part of
364 'remoting_webapp_background_html_js_files': [
365 'webapp/base/js/message_window_helper.js',
366 'webapp/base/js/message_window_manager.js',
367 'webapp/crd/js/activation_handler.js',
368 'webapp/crd/js/app_launcher.js',
369 'webapp/crd/js/background.js',
372 # All the JavaScript files required by background.html.
373 'remoting_webapp_background_html_all_js_files': [
374 '<@(remoting_webapp_background_html_js_files)',
375 'webapp/base/js/base.js',
376 'webapp/base/js/ipc.js',
377 'webapp/crd/js/client_session.js',
378 'webapp/crd/js/error.js',
379 'webapp/crd/js/host_installer.js',
380 'webapp/crd/js/host_session.js',
381 'webapp/crd/js/identity.js',
382 'webapp/crd/js/it2me_host_facade.js',
383 'webapp/crd/js/l10n.js',
384 'webapp/crd/js/oauth2.js',
385 'webapp/crd/js/oauth2_api.js',
386 'webapp/crd/js/oauth2_api_impl.js',
387 'webapp/crd/js/plugin_settings.js',
388 'webapp/crd/js/typecheck.js',
389 'webapp/crd/js/xhr.js',
393 # Webapp wcs_sandbox.html generation files.
396 'remoting_webapp_template_wcs_sandbox':
397 '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
399 # These JS files are specific to the WCS sandbox page and are not part of
401 'remoting_webapp_wcs_sandbox_html_js_files': [
402 'webapp/crd/js/wcs.js',
403 'webapp/crd/js/wcs_loader.js',
404 'webapp/crd/js/wcs_sandbox_content.js',
405 'webapp/crd/js/xhr_proxy.js',
408 # All the JavaScript files required by wcs_sandbox.html.
409 'remoting_webapp_wcs_sandbox_html_all_js_files': [
410 '<@(remoting_webapp_wcs_sandbox_html_js_files)',
411 'webapp/crd/js/error.js',
412 'webapp/crd/js/plugin_settings.js',
416 # Webapp message_window.html generation files.
419 'remoting_webapp_template_message_window':
420 '<(DEPTH)/remoting/webapp/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': [
425 'webapp/base/js/message_window.js',
428 # All the JavaScript files required by message_window.html.
429 'remoting_webapp_message_window_html_all_js_files': [
430 '<@(remoting_webapp_message_window_html_js_files)',
431 'webapp/base/js/base.js',
435 # Complete webapp JS and resource files.
438 # All the JavaScript files that are shared by webapps.
439 'remoting_webapp_shared_js_files': [
440 '<@(remoting_webapp_shared_main_html_js_files)',
441 '<@(remoting_webapp_background_html_js_files)',
442 '<@(remoting_webapp_message_window_html_js_files)',
443 '<@(remoting_webapp_wcs_sandbox_html_js_files)',
444 # JS files referenced in manifest.json.
445 '<@(remoting_webapp_js_auth_v1_files)',
448 # All the JavaScript files required by DesktopRemoting.
449 'remoting_webapp_crd_js_files': [
450 '<@(remoting_webapp_shared_js_files)',
451 '<@(remoting_webapp_crd_main_html_all_js_files)',
454 'remoting_webapp_info_files': [
455 'resources/chromoting16.webp',
456 'resources/chromoting48.webp',
457 'resources/chromoting128.webp',
460 # All the resource files required by DesktopRemoting.
461 'remoting_webapp_resource_files': [
462 'resources/disclosure_arrow_down.webp',
463 'resources/disclosure_arrow_right.webp',
464 'resources/drag.webp',
465 'resources/host_setup_instructions.webp',
466 'resources/icon_close.webp',
467 'resources/icon_cross.webp',
468 'resources/icon_disconnect.webp',
469 'resources/icon_fullscreen.webp',
470 'resources/icon_help.webp',
471 'resources/icon_host.webp',
472 'resources/icon_maximize_restore.webp',
473 'resources/icon_minimize.webp',
474 'resources/icon_options.webp',
475 'resources/icon_pencil.webp',
476 'resources/icon_warning.webp',
477 'resources/infographic_my_computers.webp',
478 'resources/infographic_remote_assistance.webp',
479 'resources/plus.webp',
480 'resources/reload.webp',
481 'resources/tick.webp',
482 'webapp/base/html/connection_stats.css',
483 'webapp/base/html/main.css',
484 'webapp/base/html/message_window.css',
485 'webapp/base/resources/open_sans.css',
486 'webapp/base/resources/open_sans.woff',
487 'webapp/base/resources/spinner.gif',
488 'webapp/crd/html/butter_bar.css',
489 'webapp/crd/html/toolbar.css',
490 'webapp/crd/html/menu_button.css',
491 'webapp/crd/html/window_frame.css',
492 'webapp/crd/resources/scale-to-fit.webp',
495 'remoting_webapp_crd_files': [
496 '<@(remoting_webapp_info_files)',
497 '<@(remoting_webapp_crd_js_files)',
498 '<@(remoting_webapp_resource_files)',
501 # Files that contain localizable strings.
502 'desktop_remoting_webapp_localizable_files': [
503 'webapp/crd/manifest.json.jinja2',
504 '<(remoting_webapp_template_background)',
505 '<(remoting_webapp_template_main)',
506 '<(remoting_webapp_template_message_window)',
507 '<(remoting_webapp_template_wcs_sandbox)',
508 '<@(remoting_webapp_template_files)',
509 '<@(remoting_webapp_crd_js_files)',