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 'remoting_webapp_info_files': [
8 'resources/chromoting16.webp',
9 'resources/chromoting48.webp',
10 'resources/chromoting128.webp',
13 # Jscompile proto files.
14 # These provide type information for jscompile.
15 'remoting_webapp_js_proto_files': [
16 'webapp/js_proto/chrome_proto.js',
17 'webapp/js_proto/chrome_cast_proto.js',
18 'webapp/js_proto/chrome_event_proto.js',
19 'webapp/js_proto/dom_proto.js',
20 'webapp/js_proto/remoting_proto.js',
24 # Webapp browsertest JavaScript files.
28 'remoting_webapp_browsertest_js_files': [
29 'webapp/browser_test/browser_test.js',
30 'webapp/browser_test/bump_scroll_browser_test.js',
31 'webapp/browser_test/cancel_pin_browser_test.js',
32 'webapp/browser_test/invalid_pin_browser_test.js',
33 'webapp/browser_test/it2me_browser_test.js',
34 'webapp/browser_test/scrollbar_browser_test.js',
35 'webapp/browser_test/timeout_waiter.js',
36 'webapp/browser_test/unauthenticated_browser_test.js',
37 'webapp/browser_test/update_pin_browser_test.js',
40 'remoting_webapp_browsertest_js_mock_files': [
41 'webapp/browser_test/mock_client_plugin.js',
42 'webapp/browser_test/mock_host_list_api.js',
43 'webapp/browser_test/mock_identity.js',
44 'webapp/browser_test/mock_oauth2_api.js',
45 'webapp/browser_test/mock_session_connector.js',
46 'webapp/unittests/mock_signal_strategy.js',
48 'remoting_webapp_browsertest_js_proto_files': [
49 'webapp/js_proto/sinon_proto.js',
50 'webapp/js_proto/test_proto.js',
51 '<@(remoting_webapp_js_proto_files)',
53 'remoting_webapp_browsertest_all_js_files': [
54 '<@(remoting_webapp_browsertest_js_files)',
55 '<@(remoting_webapp_browsertest_js_mock_files)',
59 # Webapp unittest JavaScript files.
62 # These product files are excluded from our JavaScript unittest
63 'remoting_webapp_unittest_exclude_js_files': [
64 # background.js is where the onLoad handler is defined, which
65 # makes it the entry point of the background page.
66 'webapp/crd/js/background.js',
68 # The unit test cases for the webapp
69 'remoting_webapp_unittest_js_files': [
70 'webapp/unittests/apps_v2_migration_unittest.js',
71 'webapp/unittests/base_unittest.js',
72 'webapp/unittests/desktop_viewport_unittest.js',
73 'webapp/unittests/dns_blackhole_checker_unittest.js',
74 'webapp/unittests/event_hook_unittest.js',
75 'webapp/unittests/fallback_signal_strategy_unittest.js',
76 'webapp/unittests/ipc_unittest.js',
77 'webapp/unittests/it2me_helpee_channel_unittest.js',
78 'webapp/unittests/it2me_helper_channel_unittest.js',
79 'webapp/unittests/it2me_service_unittest.js',
80 'webapp/unittests/l10n_unittest.js',
81 'webapp/unittests/menu_button_unittest.js',
82 'webapp/unittests/xhr_unittest.js',
83 'webapp/unittests/xmpp_connection_unittest.js',
84 'webapp/unittests/xmpp_login_handler_unittest.js',
85 'webapp/unittests/xmpp_stream_parser_unittest.js',
87 'remoting_webapp_unittest_js_mock_files': [
88 # Some proto files can be repurposed as simple mocks for the unittests.
89 # Note that some defs in chrome_proto are overwritten by chrome_mocks.
90 'webapp/js_proto/chrome_proto.js',
91 'webapp/unittests/chrome_mocks.js',
92 'webapp/unittests/mock_signal_strategy.js',
93 'webapp/unittests/sinon_helpers.js',
94 'webapp/unittests/test_start.js',
96 # Prototypes for objects that are not mocked.
97 'remoting_webapp_unittest_js_proto_files': [
98 'webapp/js_proto/chrome_cast_proto.js',
99 'webapp/js_proto/dom_proto.js',
100 'webapp/js_proto/remoting_proto.js',
101 'webapp/js_proto/qunit_proto.js',
102 'webapp/js_proto/sinon_proto.js',
103 'webapp/js_proto/sinon_stub_proto.js',
105 'remoting_webapp_unittest_all_js_files': [
106 '<@(remoting_webapp_unittest_js_files)',
107 '<@(remoting_webapp_unittest_js_mock_files)',
109 # All the files needed to run the unittests.
110 'remoting_webapp_unittest_all_files': [
111 'webapp/crd/html/menu_button.css',
112 '<@(remoting_webapp_unittest_all_js_files)',
114 'remoting_webapp_unittest_template_main':
115 'webapp/crd/html/template_unittest.html',
118 # Webapp JavaScript file groups.
121 # Auth (apps v1) JavaScript files.
122 # These files aren't included directly from main.html. They are
123 # referenced from the manifest.json file (appsv1 only).
124 'remoting_webapp_js_auth_v1_files': [
125 'webapp/crd/js/cs_third_party_auth_trampoline.js', # client to host
126 'webapp/crd/js/cs_oauth2_trampoline.js', # Google account
128 # Auth (client to host) JavaScript files.
129 'remoting_webapp_js_auth_client2host_files': [
130 'webapp/crd/js/third_party_host_permissions.js',
131 'webapp/crd/js/third_party_token_fetcher.js',
133 # Auth (Google account) JavaScript files.
134 'remoting_webapp_js_auth_google_files': [
135 'webapp/base/js/auth_dialog.js',
136 'webapp/base/js/auth_init.js',
137 'webapp/crd/js/identity.js',
138 'webapp/crd/js/oauth2.js',
139 'webapp/crd/js/oauth2_api.js',
140 'webapp/crd/js/oauth2_api_impl.js',
142 # Cast extension handler JavaScript files.
143 'remoting_webapp_js_cast_extension_files': [
144 'webapp/crd/js/cast_extension_handler.js',
146 # Client JavaScript files.
147 'remoting_webapp_js_client_files': [
148 'webapp/crd/js/client_plugin.js',
149 'webapp/crd/js/client_plugin_impl.js',
150 'webapp/crd/js/client_plugin_host_desktop_impl.js',
151 # TODO(garykac) For client_screen:
152 # * Split out pin/access code stuff into separate file.
153 # * Move client logic into session_connector
154 'webapp/crd/js/client_screen.js',
155 'webapp/crd/js/client_session.js',
156 'webapp/crd/js/clipboard.js',
157 'webapp/crd/js/credentials_provider.js',
158 'webapp/crd/js/desktop_connected_view.js',
159 'webapp/crd/js/hangout_session.js',
160 'webapp/crd/js/host_desktop.js',
161 'webapp/crd/js/session_connector.js',
162 'webapp/crd/js/session_connector_impl.js',
163 'webapp/crd/js/smart_reconnector.js',
164 'webapp/crd/js/video_frame_recorder.js',
166 # Remoting core JavaScript files.
167 'remoting_webapp_js_core_files': [
168 'webapp/base/js/app_capabilities.js',
169 'webapp/base/js/application.js',
170 'webapp/base/js/base.js',
171 'webapp/base/js/ipc.js',
172 'webapp/base/js/platform.js',
173 'webapp/crd/js/apps_v2_migration.js',
174 'webapp/crd/js/error.js',
175 'webapp/crd/js/event_handlers.js',
176 'webapp/crd/js/plugin_settings.js',
177 'webapp/crd/js/remoting.js',
178 'webapp/crd/js/typecheck.js',
179 'webapp/crd/js/xhr.js',
181 # Gnubby authentication JavaScript files.
182 'remoting_webapp_js_gnubby_auth_files': [
183 'webapp/crd/js/gnubby_auth_handler.js',
185 # Host JavaScript files.
186 'remoting_webapp_js_host_files': [
187 'webapp/crd/js/host.js',
188 'webapp/crd/js/host_settings.js',
190 # Files for controlling the local machine as a host.
191 # Includes both it2me and me2me files.
192 'remoting_webapp_js_host_control_files': [
193 'webapp/crd/js/host_controller.js',
194 'webapp/crd/js/host_daemon_facade.js',
195 'webapp/crd/js/host_screen.js',
196 'webapp/crd/js/host_session.js',
197 'webapp/crd/js/host_setup_dialog.js',
198 'webapp/crd/js/host_install_dialog.js',
199 'webapp/crd/js/host_installer.js',
200 'webapp/crd/js/it2me_host_facade.js',
201 'webapp/crd/js/paired_client_manager.js',
203 # Files for displaying (in the client) info about available hosts.
204 'remoting_webapp_js_host_display_files': [
205 'webapp/crd/js/host_list.js',
206 'webapp/crd/js/host_list_api.js',
207 'webapp/crd/js/host_list_api_impl.js',
208 'webapp/crd/js/host_table_entry.js',
210 # Logging and stats JavaScript files.
211 'remoting_webapp_js_logging_files': [
212 'webapp/crd/js/format_iq.js',
213 'webapp/crd/js/log_to_server.js',
214 'webapp/crd/js/server_log_entry.js',
215 'webapp/crd/js/stats_accumulator.js',
217 # Remoting signaling files.
218 'remoting_webapp_js_signaling_files': [
219 'webapp/crd/js/dns_blackhole_checker.js',
220 'webapp/crd/js/fallback_signal_strategy.js',
221 'webapp/crd/js/signal_strategy.js',
222 'webapp/crd/js/wcs_adapter.js',
223 'webapp/crd/js/wcs_sandbox_container.js',
224 'webapp/crd/js/xmpp_connection.js',
225 'webapp/crd/js/xmpp_login_handler.js',
226 'webapp/crd/js/xmpp_stream_parser.js',
228 # UI JavaScript files.
229 'remoting_webapp_js_ui_files': [
230 'webapp/base/js/window_shape.js',
231 'webapp/crd/js/bump_scroller.js',
232 'webapp/crd/js/butter_bar.js',
233 'webapp/crd/js/connection_stats.js',
234 'webapp/crd/js/desktop_viewport.js',
235 'webapp/crd/js/feedback.js',
236 'webapp/crd/js/fullscreen.js',
237 'webapp/crd/js/fullscreen_v1.js',
238 'webapp/crd/js/fullscreen_v2.js',
239 'webapp/crd/js/l10n.js',
240 'webapp/crd/js/menu_button.js',
241 'webapp/crd/js/options_menu.js',
242 'webapp/crd/js/ui_mode.js',
243 'webapp/crd/js/toolbar.js',
244 'webapp/crd/js/window_frame.js',
246 # Remoting WCS sandbox JavaScript files.
247 'remoting_webapp_js_wcs_sandbox_files': [
248 'webapp/crd/js/wcs.js',
249 'webapp/crd/js/wcs_loader.js',
250 'webapp/crd/js/wcs_sandbox_content.js',
251 'webapp/crd/js/xhr_proxy.js',
254 # The shared JavaScript files required by main.html.
255 'remoting_webapp_shared_main_html_js_files': [
256 # Include the core files first as it is required by the other files.
257 # Otherwise, Jscompile will complain.
258 '<@(remoting_webapp_js_core_files)',
259 '<@(remoting_webapp_js_auth_client2host_files)',
260 '<@(remoting_webapp_js_auth_google_files)',
261 '<@(remoting_webapp_js_client_files)',
262 '<@(remoting_webapp_js_gnubby_auth_files)',
263 '<@(remoting_webapp_js_cast_extension_files)',
264 '<@(remoting_webapp_js_host_files)',
265 '<@(remoting_webapp_js_host_control_files)',
266 '<@(remoting_webapp_js_host_display_files)',
267 '<@(remoting_webapp_js_logging_files)',
268 '<@(remoting_webapp_js_ui_files)',
269 '<@(remoting_webapp_js_signaling_files)',
270 # Uncomment this line to include browser test files in the web app
271 # to expedite debugging or local development.
272 #'<@(remoting_webapp_browsertest_all_js_files)',
275 # The CRD-specific JavaScript files required by main.html.
276 'remoting_webapp_crd_main_html_js_files': [
277 'webapp/crd/js/crd_connect.js',
278 'webapp/crd/js/crd_event_handlers.js',
279 'webapp/crd/js/crd_main.js',
280 'webapp/crd/js/desktop_remoting.js',
283 # The JavaScript files that are used in the background page.
284 'remoting_webapp_background_js_files': [
285 'webapp/base/js/base.js',
286 'webapp/base/js/ipc.js',
287 'webapp/base/js/message_window_helper.js',
288 'webapp/base/js/message_window_manager.js',
289 'webapp/crd/js/activation_handler.js',
290 'webapp/crd/js/app_launcher.js',
291 'webapp/crd/js/background.js',
292 'webapp/crd/js/client_session.js',
293 'webapp/crd/js/error.js',
294 'webapp/crd/js/hangout_consent_dialog.js',
295 'webapp/crd/js/host_installer.js',
296 'webapp/crd/js/host_session.js',
297 'webapp/crd/js/identity.js',
298 'webapp/crd/js/it2me_helpee_channel.js',
299 'webapp/crd/js/it2me_helper_channel.js',
300 'webapp/crd/js/it2me_host_facade.js',
301 'webapp/crd/js/it2me_service.js',
302 'webapp/crd/js/l10n.js',
303 'webapp/crd/js/oauth2.js',
304 'webapp/crd/js/oauth2_api.js',
305 'webapp/crd/js/oauth2_api_impl.js',
306 'webapp/crd/js/plugin_settings.js',
307 'webapp/crd/js/typecheck.js',
308 'webapp/crd/js/xhr.js',
311 # The JavaScript files required by wcs_sandbox.html.
312 'remoting_webapp_wcs_sandbox_html_js_files': [
313 '<@(remoting_webapp_js_wcs_sandbox_files)',
314 'webapp/crd/js/error.js',
315 'webapp/crd/js/plugin_settings.js',
318 # All the JavaScript files that are shared by webapps.
319 'remoting_webapp_shared_js_files': [
320 # JS files for main.html.
321 '<@(remoting_webapp_shared_main_html_js_files)',
322 '<@(remoting_webapp_background_js_files)',
323 # JS files for message_window.html
324 'webapp/base/js/message_window.js',
325 # JS files for dialog_hangout_consent.html
326 'webapp/crd/js/hangout_consent_dialog_main.js',
327 # JS files for wcs_sandbox.html.
328 # Use r_w_js_wcs_sandbox_files instead of r_w_wcs_sandbox_html_js_files
329 # so that we don't double include error.js and plugin_settings.js.
330 '<@(remoting_webapp_js_wcs_sandbox_files)',
331 # JS files referenced in mainfest.json.
332 '<@(remoting_webapp_js_auth_v1_files)',
335 # All the JavaScript files required by CRD.
336 'remoting_webapp_crd_js_files': [
337 '<@(remoting_webapp_shared_js_files)',
338 '<@(remoting_webapp_crd_main_html_js_files)',
341 'remoting_webapp_resource_files': [
342 'resources/disclosure_arrow_down.webp',
343 'resources/disclosure_arrow_right.webp',
344 'resources/drag.webp',
345 'resources/host_setup_instructions.webp',
346 'resources/icon_close.webp',
347 'resources/icon_cross.webp',
348 'resources/icon_disconnect.webp',
349 'resources/icon_fullscreen.webp',
350 'resources/icon_help.webp',
351 'resources/icon_host.webp',
352 'resources/icon_maximize_restore.webp',
353 'resources/icon_minimize.webp',
354 'resources/icon_options.webp',
355 'resources/icon_pencil.webp',
356 'resources/icon_warning.webp',
357 'resources/infographic_my_computers.webp',
358 'resources/infographic_remote_assistance.webp',
359 'resources/plus.webp',
360 'resources/reload.webp',
361 'resources/tick.webp',
362 'webapp/base/html/connection_stats.css',
363 'webapp/base/html/main.css',
364 'webapp/base/html/message_window.html',
365 'webapp/base/html/message_window.css',
366 'webapp/base/resources/open_sans.css',
367 'webapp/base/resources/open_sans.woff',
368 'webapp/base/resources/spinner.gif',
369 'webapp/crd/html/butter_bar.css',
370 'webapp/crd/html/dialog_hangout_consent.html',
371 'webapp/crd/html/dialog_hangout_consent.css',
372 'webapp/crd/html/toolbar.css',
373 'webapp/crd/html/menu_button.css',
374 'webapp/crd/html/window_frame.css',
375 'webapp/crd/resources/scale-to-fit.webp',
378 'remoting_webapp_crd_files': [
379 '<@(remoting_webapp_info_files)',
380 '<@(remoting_webapp_crd_js_files)',
381 '<@(remoting_webapp_resource_files)',
384 # These template files are used to construct the webapp html files.
385 'remoting_webapp_template_main':
386 '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
388 'remoting_webapp_template_wcs_sandbox':
389 '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
391 'remoting_webapp_template_background':
392 '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
394 'remoting_webapp_template_files': [
395 'webapp/base/html/client_plugin.html',
396 'webapp/base/html/dialog_auth.html',
397 'webapp/crd/html/butter_bar.html',
398 'webapp/crd/html/dialog_client_connect_failed.html',
399 'webapp/crd/html/dialog_client_connecting.html',
400 'webapp/crd/html/dialog_client_host_needs_upgrade.html',
401 'webapp/crd/html/dialog_client_pin_prompt.html',
402 'webapp/crd/html/dialog_client_session_finished.html',
403 'webapp/crd/html/dialog_client_third_party_auth.html',
404 'webapp/crd/html/dialog_client_unconnected.html',
405 'webapp/crd/html/dialog_confirm_host_delete.html',
406 'webapp/crd/html/dialog_connection_history.html',
407 'webapp/crd/html/dialog_host.html',
408 'webapp/crd/html/dialog_host_install.html',
409 'webapp/crd/html/dialog_host_setup.html',
410 'webapp/crd/html/dialog_manage_pairings.html',
411 'webapp/crd/html/dialog_token_refresh_failed.html',
412 'webapp/crd/html/toolbar.html',
413 'webapp/crd/html/ui_header.html',
414 'webapp/crd/html/ui_it2me.html',
415 'webapp/crd/html/ui_me2me.html',
416 'webapp/crd/html/window_frame.html',
419 # Files that contain localizable strings.
420 'desktop_remoting_webapp_localizable_files': [
421 'webapp/crd/manifest.json.jinja2',
422 '<(remoting_webapp_template_main)',
423 '<(remoting_webapp_template_wcs_sandbox)',
424 '<(remoting_webapp_template_background)',
425 '<@(remoting_webapp_template_files)',
426 '<@(remoting_webapp_crd_js_files)',