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/platform_unittest.js',
93 'webapp/base/js/protocol_extension_manager_unittest.js',
94 'webapp/base/js/typecheck_unittest.js',
95 'webapp/base/js/viewport_unittest.js',
96 'webapp/base/js/window_shape_unittest.js',
97 'webapp/base/js/xhr_unittest.js',
98 'webapp/base/js/xmpp_connection_unittest.js',
99 'webapp/base/js/xmpp_login_handler_unittest.js',
100 'webapp/base/js/xmpp_stream_parser_unittest.js',
101 'webapp/crd/js/apps_v2_migration_unittest.js',
102 'webapp/crd/js/gcd_client_unittest.js',
103 'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
104 'webapp/crd/js/host_controller_unittest.js',
105 'webapp/crd/js/host_daemon_facade_unittest.js',
106 'webapp/crd/js/host_table_entry_unittest.js',
107 'webapp/crd/js/legacy_host_list_api_unittest.js',
108 'webapp/crd/js/menu_button_unittest.js',
109 'webapp/crd/js/mock_xhr_unittest.js',
111 'remoting_webapp_unittests_js_mock_files': [
112 'webapp/crd/js/mock_client_plugin.js',
113 'webapp/crd/js/mock_host_daemon_facade.js',
114 'webapp/crd/js/mock_host_list_api.js',
115 'webapp/crd/js/mock_identity.js',
116 'webapp/crd/js/mock_signal_strategy.js',
117 'webapp/js_proto/chrome_mocks.js',
118 'webapp/unittests/sinon_helpers.js',
119 'webapp/crd/js/mock_xhr.js',
121 # Prototypes for objects that are not mocked.
122 'remoting_webapp_unittests_js_proto_files': [
123 'webapp/js_proto/chrome_cast_proto.js',
124 'webapp/js_proto/chrome_proto.js',
125 'webapp/js_proto/dom_proto.js',
126 'webapp/js_proto/remoting_proto.js',
127 'webapp/js_proto/qunit_proto.js',
128 'webapp/js_proto/sinon_proto.js',
130 'remoting_webapp_unittests_all_js_files': [
131 '<@(remoting_webapp_unittests_js_files)',
132 '<@(remoting_webapp_unittests_js_mock_files)',
133 'webapp/unittests/qunit_callbacks.js',
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 # Shared webapp JavaScript file groups.
147 # Auth (Google account) JavaScript files.
148 'remoting_webapp_shared_js_auth_google_files': [
149 'webapp/base/js/auth_init.js',
150 'webapp/base/js/identity.js',
151 'webapp/base/js/oauth2.js',
152 'webapp/base/js/oauth2_api.js',
153 'webapp/base/js/oauth2_api_impl.js',
155 # Client JavaScript files.
156 'remoting_webapp_shared_js_client_files': [
157 'webapp/base/js/activity.js',
158 'webapp/base/js/client_plugin.js',
159 'webapp/base/js/client_plugin_host_desktop_impl.js',
160 'webapp/base/js/client_plugin_impl.js',
161 'webapp/base/js/client_session.js',
162 'webapp/base/js/client_session_factory.js',
163 'webapp/base/js/clipboard.js',
164 'webapp/base/js/connected_view.js',
165 'webapp/base/js/connection_info.js',
166 'webapp/base/js/credentials_provider.js',
167 'webapp/base/js/host_desktop.js',
168 'webapp/base/js/smart_reconnector.js',
170 # Remoting core JavaScript files.
171 'remoting_webapp_shared_js_core_files': [
172 'webapp/base/js/app_capabilities.js',
173 'webapp/base/js/application.js',
174 'webapp/base/js/base.js',
175 'webapp/base/js/ipc.js',
176 'webapp/base/js/modal_dialogs.js',
177 'webapp/base/js/platform.js',
178 'webapp/base/js/protocol_extension_manager.js',
179 'webapp/base/js/protocol_extension.js',
180 'webapp/base/js/error.js',
181 'webapp/base/js/plugin_settings.js',
182 'webapp/base/js/suspend_detector.js',
183 'webapp/base/js/typecheck.js',
184 'webapp/base/js/xhr.js',
186 # Host JavaScript files.
187 'remoting_webapp_shared_js_host_files': [
188 'webapp/base/js/host.js',
189 'webapp/base/js/host_settings.js',
191 # Logging and stats JavaScript files.
192 'remoting_webapp_shared_js_logging_files': [
193 'webapp/base/js/format_iq.js',
194 'webapp/base/js/log_to_server.js',
195 'webapp/base/js/server_log_entry.js',
196 'webapp/base/js/stats_accumulator.js',
198 # Remoting signaling files.
199 'remoting_webapp_shared_js_signaling_files': [
200 'webapp/base/js/dns_blackhole_checker.js',
201 'webapp/base/js/fallback_signal_strategy.js',
202 'webapp/base/js/signal_strategy.js',
203 'webapp/base/js/tcp_socket.js',
204 'webapp/base/js/wcs_adapter.js',
205 'webapp/base/js/wcs_sandbox_container.js',
206 'webapp/base/js/xmpp_connection.js',
207 'webapp/base/js/xmpp_login_handler.js',
208 'webapp/base/js/xmpp_stream_parser.js',
210 # Shared UI JavaScript files.
211 'remoting_webapp_shared_js_ui_files': [
212 'webapp/base/js/connection_dropped_dialog.js',
213 'webapp/base/js/connection_stats.js',
214 'webapp/base/js/l10n.js',
215 'webapp/base/js/ui_mode.js',
216 'webapp/base/js/viewport.js',
217 'webapp/base/js/window_shape.js',
221 # DesktopRemoting webapp JavaScript file groups.
224 # Auth (apps v1) JavaScript files.
225 # These files aren't included directly from main.html. They are
226 # referenced from the manifest.json file (appsv1 only).
227 'remoting_webapp_js_auth_v1_files': [
228 'webapp/crd/js/cs_third_party_auth_trampoline.js', # client to host
229 'webapp/crd/js/cs_oauth2_trampoline.js', # Google account
231 # Auth (client to host) JavaScript files.
232 'remoting_webapp_js_auth_client2host_files': [
233 'webapp/crd/js/third_party_host_permissions.js',
234 'webapp/crd/js/third_party_token_fetcher.js',
236 # Cast extension handler JavaScript files.
237 'remoting_webapp_js_cast_extension_files': [
238 'webapp/crd/js/cast_extension_handler.js',
240 # Client JavaScript files.
241 'remoting_webapp_js_client_files': [
242 'webapp/crd/js/apps_v2_migration.js',
243 'webapp/crd/js/event_handlers.js',
244 'webapp/crd/js/gcd_client.js',
245 'webapp/crd/js/video_frame_recorder.js',
247 # Gnubby authentication JavaScript files.
248 'remoting_webapp_js_gnubby_auth_files': [
249 'webapp/crd/js/gnubby_auth_handler.js',
251 # Files for controlling the local machine as a host.
252 # Includes both it2me and me2me files.
253 'remoting_webapp_js_host_control_files': [
254 'webapp/crd/js/buffered_signal_strategy.js',
255 'webapp/crd/js/host_controller.js',
256 'webapp/crd/js/host_daemon_facade.js',
257 'webapp/crd/js/host_screen.js',
258 'webapp/crd/js/host_session.js',
259 'webapp/crd/js/host_setup_dialog.js',
260 'webapp/crd/js/host_install_dialog.js',
261 'webapp/crd/js/host_installer.js',
262 'webapp/crd/js/it2me_host_facade.js',
263 'webapp/crd/js/paired_client_manager.js',
265 # Files for displaying (in the client) info about available hosts.
266 'remoting_webapp_js_host_display_files': [
267 'webapp/crd/js/host_list.js',
268 'webapp/crd/js/host_list_api.js',
269 'webapp/crd/js/host_table_entry.js',
270 'webapp/crd/js/local_host_section.js',
272 # Must come after host_list_api.js because of an issue with
273 # JSCompiler. If an implementation of an interface occurs in a
274 # file processed before the interface itself, the @override tag
275 # doesn't always work correctly.
276 'webapp/crd/js/gcd_host_list_api.js',
277 'webapp/crd/js/legacy_host_list_api.js',
279 # The CRD-specific JavaScript files required by main.html.
280 'remoting_webapp_crd_js_ui_files': [
281 'webapp/crd/js/bump_scroller.js',
282 'webapp/crd/js/butter_bar.js',
283 'webapp/crd/js/crd_auth_dialog.js',
284 'webapp/crd/js/crd_event_handlers.js',
285 'webapp/crd/js/crd_experimental.js',
286 'webapp/crd/js/desktop_connected_view.js',
287 'webapp/crd/js/desktop_remoting.js',
288 'webapp/crd/js/desktop_remoting_activity.js',
289 'webapp/crd/js/desktop_viewport.js',
290 'webapp/crd/js/feedback.js',
291 'webapp/crd/js/fullscreen.js',
292 'webapp/crd/js/fullscreen_v1.js',
293 'webapp/crd/js/fullscreen_v2.js',
294 'webapp/crd/js/it2me_activity.js',
295 'webapp/crd/js/me2me_activity.js',
296 'webapp/crd/js/menu_button.js',
297 'webapp/crd/js/options_menu.js',
298 'webapp/crd/js/toolbar.js',
299 'webapp/crd/js/window_frame.js',
303 # DesktopRemoting main.html generation files.
306 'remoting_webapp_template_main':
307 '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
309 # The shared JavaScript files required by main.html.
310 # These files are shared with the unittest target.
311 'remoting_webapp_shared_main_html_js_files': [
312 # Include the core files first as it is required by the other files.
313 # Otherwise, Jscompile will complain.
314 '<@(remoting_webapp_shared_js_core_files)',
315 '<@(remoting_webapp_shared_js_auth_google_files)',
316 '<@(remoting_webapp_shared_js_client_files)',
317 '<@(remoting_webapp_shared_js_host_files)',
318 '<@(remoting_webapp_shared_js_logging_files)',
319 '<@(remoting_webapp_shared_js_signaling_files)',
320 '<@(remoting_webapp_shared_js_ui_files)',
321 '<@(remoting_webapp_js_auth_client2host_files)',
322 '<@(remoting_webapp_js_client_files)',
323 '<@(remoting_webapp_js_gnubby_auth_files)',
324 '<@(remoting_webapp_js_cast_extension_files)',
325 '<@(remoting_webapp_js_host_control_files)',
326 '<@(remoting_webapp_js_host_display_files)',
329 # The JS files required by unittest.html.
330 'remoting_webapp_unittest_html_all_js_files': [
331 '<@(remoting_webapp_shared_main_html_js_files)',
332 '<@(remoting_webapp_crd_js_ui_files)',
335 # The CRD-specific JavaScript files required by main.html.
336 'remoting_webapp_crd_main_html_all_js_files': [
337 '<@(remoting_webapp_shared_main_html_js_files)',
338 '<@(remoting_webapp_crd_js_ui_files)',
339 'webapp/crd/js/crd_main.js',
342 # These template files are used to construct main.html.
343 'remoting_webapp_template_files': [
344 'webapp/base/html/client_plugin.html',
345 'webapp/crd/html/butter_bar.html',
346 'webapp/crd/html/dialog_auth.html',
347 'webapp/crd/html/dialog_client_connect_failed.html',
348 'webapp/crd/html/dialog_client_connecting.html',
349 'webapp/crd/html/dialog_client_host_needs_upgrade.html',
350 'webapp/crd/html/dialog_client_pin_prompt.html',
351 'webapp/crd/html/dialog_client_session_finished.html',
352 'webapp/crd/html/dialog_client_third_party_auth.html',
353 'webapp/crd/html/dialog_client_unconnected.html',
354 'webapp/crd/html/dialog_confirm_host_delete.html',
355 'webapp/crd/html/dialog_connection_history.html',
356 'webapp/crd/html/dialog_host.html',
357 'webapp/crd/html/dialog_host_install.html',
358 'webapp/crd/html/dialog_host_setup.html',
359 'webapp/crd/html/dialog_manage_pairings.html',
360 'webapp/crd/html/dialog_token_refresh_failed.html',
361 'webapp/crd/html/toolbar.html',
362 'webapp/crd/html/ui_header.html',
363 'webapp/crd/html/ui_it2me.html',
364 'webapp/crd/html/ui_me2me.html',
365 'webapp/crd/html/window_frame.html',
369 # Webapp background.html generation files.
372 'remoting_webapp_template_background':
373 '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
375 # These JS files are specific to the background page and are not part of
377 'remoting_webapp_background_html_js_files': [
378 'webapp/base/js/message_window_helper.js',
379 'webapp/base/js/message_window_manager.js',
380 'webapp/crd/js/activation_handler.js',
381 'webapp/crd/js/app_launcher.js',
382 'webapp/crd/js/background.js',
385 # All the JavaScript files required by background.html.
386 'remoting_webapp_background_html_all_js_files': [
387 '<@(remoting_webapp_background_html_js_files)',
388 'webapp/base/js/base.js',
389 'webapp/base/js/error.js',
390 'webapp/base/js/identity.js',
391 'webapp/base/js/ipc.js',
392 'webapp/base/js/l10n.js',
393 'webapp/base/js/oauth2.js',
394 'webapp/base/js/oauth2_api.js',
395 'webapp/base/js/oauth2_api_impl.js',
396 'webapp/base/js/plugin_settings.js',
397 'webapp/base/js/typecheck.js',
398 'webapp/base/js/xhr.js',
399 'webapp/crd/js/host_installer.js',
400 'webapp/crd/js/host_session.js',
401 'webapp/crd/js/it2me_host_facade.js',
405 # Webapp wcs_sandbox.html generation files.
408 'remoting_webapp_template_wcs_sandbox':
409 '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
411 # These JS files are specific to the WCS sandbox page and are not part of
413 'remoting_webapp_wcs_sandbox_html_js_files': [
414 'webapp/crd/js/wcs.js',
415 'webapp/crd/js/wcs_loader.js',
416 'webapp/crd/js/wcs_sandbox_content.js',
417 'webapp/crd/js/xhr_proxy.js',
420 # All the JavaScript files required by wcs_sandbox.html.
421 'remoting_webapp_wcs_sandbox_html_all_js_files': [
422 '<@(remoting_webapp_wcs_sandbox_html_js_files)',
423 'webapp/base/js/error.js',
424 'webapp/base/js/plugin_settings.js',
428 # Webapp message_window.html generation files.
431 'remoting_webapp_template_message_window':
432 '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
434 # These JS files are specific to the message window page and are not part of
436 'remoting_webapp_message_window_html_js_files': [
437 'webapp/base/js/message_window.js',
440 # All the JavaScript files required by message_window.html.
441 'remoting_webapp_message_window_html_all_js_files': [
442 '<@(remoting_webapp_message_window_html_js_files)',
443 'webapp/base/js/base.js',
447 # Complete webapp JS and resource files.
450 # All the JavaScript files that are shared by webapps.
451 'remoting_webapp_shared_js_files': [
452 '<@(remoting_webapp_shared_main_html_js_files)',
453 '<@(remoting_webapp_background_html_js_files)',
454 '<@(remoting_webapp_message_window_html_js_files)',
455 '<@(remoting_webapp_wcs_sandbox_html_js_files)',
456 # JS files referenced in manifest.json.
457 '<@(remoting_webapp_js_auth_v1_files)',
460 # All the JavaScript files required by DesktopRemoting.
461 'remoting_webapp_crd_js_files': [
462 '<@(remoting_webapp_shared_js_files)',
463 '<@(remoting_webapp_crd_main_html_all_js_files)',
466 'remoting_webapp_info_files': [
467 'resources/chromoting16.webp',
468 'resources/chromoting48.webp',
469 'resources/chromoting128.webp',
472 # All the resource files required by DesktopRemoting.
473 'remoting_webapp_resource_files': [
474 'resources/disclosure_arrow_down.webp',
475 'resources/disclosure_arrow_right.webp',
476 'resources/drag.webp',
477 'resources/host_setup_instructions.webp',
478 'resources/icon_close.webp',
479 'resources/icon_cross.webp',
480 'resources/icon_disconnect.webp',
481 'resources/icon_fullscreen.webp',
482 'resources/icon_help.webp',
483 'resources/icon_host.webp',
484 'resources/icon_maximize_restore.webp',
485 'resources/icon_minimize.webp',
486 'resources/icon_options.webp',
487 'resources/icon_pencil.webp',
488 'resources/icon_warning.webp',
489 'resources/infographic_my_computers.webp',
490 'resources/infographic_remote_assistance.webp',
491 'resources/plus.webp',
492 'resources/reload.webp',
493 'resources/tick.webp',
494 'webapp/base/html/connection_stats.css',
495 'webapp/base/html/main.css',
496 'webapp/base/html/message_window.css',
497 'webapp/base/resources/open_sans.css',
498 'webapp/base/resources/open_sans.woff',
499 'webapp/base/resources/spinner.gif',
500 'webapp/crd/html/butter_bar.css',
501 'webapp/crd/html/crd_main.css',
502 'webapp/crd/html/toolbar.css',
503 'webapp/crd/html/menu_button.css',
504 'webapp/crd/html/window_frame.css',
505 'webapp/crd/resources/scale-to-fit.webp',
508 'remoting_webapp_crd_files': [
509 '<@(remoting_webapp_info_files)',
510 '<@(remoting_webapp_crd_js_files)',
511 '<@(remoting_webapp_resource_files)',
514 # Files that contain localizable strings.
515 'desktop_remoting_webapp_localizable_files': [
516 'webapp/crd/manifest.json.jinja2',
517 '<(remoting_webapp_template_background)',
518 '<(remoting_webapp_template_main)',
519 '<(remoting_webapp_template_message_window)',
520 '<(remoting_webapp_template_wcs_sandbox)',
521 '<@(remoting_webapp_template_files)',
522 '<@(remoting_webapp_crd_js_files)',