Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blobba6057372bbec05381083926c548a90d903f8e12
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.
5 # `7MM"""Mq.                       `7MM
6 #   MM   `MM.                        MM
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.
16   'variables': {
18     # JSCompiler externs.
19     'remoting_webapp_js_externs_files': [
20       'webapp/externs/qunit.js',
21     ],
23     # Jscompile proto files.
24     # These provide type information for jscompile.
25     'remoting_webapp_js_proto_files': [
26       'webapp/js_proto/chrome_proto.js',
27       'webapp/js_proto/chrome_cast_proto.js',
28       'webapp/js_proto/dom_proto.js',
29       'webapp/js_proto/remoting_proto.js',
30     ],
32     #
33     # Webapp browsertest JavaScript files.
34     #
36     # Browser test files.
37     'remoting_webapp_browsertest_js_files': [
38       'webapp/browser_test/browser_test.js',
39       'webapp/browser_test/bump_scroll_browser_test.js',
40       'webapp/browser_test/cancel_pin_browser_test.js',
41       'webapp/browser_test/invalid_pin_browser_test.js',
42       'webapp/browser_test/it2me_browser_test.js',
43       'webapp/browser_test/me2me_browser_test.js',
44       'webapp/browser_test/scrollbar_browser_test.js',
45       'webapp/browser_test/timeout_waiter.js',
46       'webapp/browser_test/unauthenticated_browser_test.js',
47       'webapp/browser_test/update_pin_browser_test.js',
48     ],
49     # Browser test files.
50     'remoting_webapp_browsertest_js_mock_files': [
51       'webapp/crd/js/mock_client_plugin.js',
52       'webapp/crd/js/mock_host_list_api.js',
53       'webapp/crd/js/mock_identity.js',
54       'webapp/crd/js/mock_oauth2_api.js',
55       'webapp/crd/js/mock_signal_strategy.js',
56     ],
57     'remoting_webapp_browsertest_js_proto_files': [
58       'webapp/js_proto/sinon_proto.js',
59       'webapp/js_proto/test_proto.js',
60       '<@(remoting_webapp_js_proto_files)',
61     ],
62     'remoting_webapp_browsertest_all_js_files': [
63       '<@(remoting_webapp_browsertest_js_files)',
64       '<@(remoting_webapp_browsertest_js_mock_files)',
65     ],
66     'remoting_webapp_browsertest_main_html_extra_files': [
67       '<@(remoting_webapp_browsertest_all_js_files)',
68       '../third_party/sinonjs/src/sinon.js',
69     ],
71     #
72     # Webapp unittest JavaScript files.
73     #
75     # These product files are excluded from our JavaScript unittest
76     'remoting_webapp_unittests_exclude_js_files': [
77       # background.js is where the onLoad handler is defined, which
78       # makes it the entry point of the background page.
79       'webapp/crd/js/background.js',
80     ],
81     # The unit test cases for the webapp
82     'remoting_webapp_unittests_js_files': [
83       # TODO(jrw): Move spy_promise to base.
84       'webapp/unittests/spy_promise.js',
85       'webapp/unittests/spy_promise_unittest.js',
86       'webapp/base/js/base_unittest.js',
87       'webapp/base/js/base_event_hook_unittest.js',
88       'webapp/base/js/base_inherits_unittest.js',
89       'webapp/base/js/client_session_unittest.js',
90       'webapp/base/js/client_session_factory_unittest.js',
91       'webapp/base/js/dns_blackhole_checker_unittest.js',
92       'webapp/base/js/error_unittest.js',
93       'webapp/base/js/fallback_signal_strategy_unittest.js',
94       'webapp/base/js/identity_unittest.js',
95       'webapp/base/js/ipc_unittest.js',
96       'webapp/base/js/l10n_unittest.js',
97       'webapp/base/js/platform_unittest.js',
98       'webapp/base/js/protocol_extension_manager_unittest.js',
99       'webapp/base/js/session_logger_unittest.js',
100       'webapp/base/js/telemetry_event_writer_unittest.js',
101       'webapp/base/js/typecheck_unittest.js',
102       'webapp/base/js/viewport_unittest.js',
103       'webapp/base/js/window_shape_unittest.js',
104       'webapp/base/js/window_message_dispatcher_unittest.js',
105       'webapp/base/js/xhr_event_writer_unittest.js',
106       'webapp/base/js/xhr_unittest.js',
107       'webapp/base/js/xmpp_connection_unittest.js',
108       'webapp/base/js/xmpp_login_handler_unittest.js',
109       'webapp/base/js/xmpp_stream_parser_unittest.js',
110       'webapp/crd/js/apps_v2_migration_unittest.js',
111       'webapp/crd/js/combined_host_list_api_unittest.js',
112       'webapp/crd/js/gcd_client_unittest.js',
113       'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
114       'webapp/crd/js/host_controller_unittest.js',
115       'webapp/crd/js/host_daemon_facade_unittest.js',
116       'webapp/crd/js/host_table_entry_unittest.js',
117       'webapp/crd/js/legacy_host_list_api_unittest.js',
118       'webapp/crd/js/menu_button_unittest.js',
119       'webapp/crd/js/mock_xhr_unittest.js',
120     ],
121     'remoting_webapp_unittests_js_mock_files': [
122       'webapp/crd/js/mock_client_plugin.js',
123       'webapp/crd/js/mock_host_daemon_facade.js',
124       'webapp/crd/js/mock_host_list_api.js',
125       'webapp/crd/js/mock_identity.js',
126       'webapp/crd/js/mock_signal_strategy.js',
127       'webapp/js_proto/chrome_mocks.js',
128       'webapp/unittests/sinon_helpers.js',
129       'webapp/crd/js/mock_xhr.js',
130     ],
131     # Prototypes for objects that are not mocked.
132     'remoting_webapp_unittests_js_proto_files': [
133       'webapp/js_proto/chrome_cast_proto.js',
134       'webapp/js_proto/chrome_proto.js',
135       'webapp/js_proto/dom_proto.js',
136       'webapp/js_proto/remoting_proto.js',
137       'webapp/js_proto/sinon_proto.js',
138     ],
139     'remoting_webapp_unittests_all_js_files': [
140       '<@(remoting_webapp_unittests_js_files)',
141       '<@(remoting_webapp_unittests_js_mock_files)',
142       'webapp/unittests/qunit_callbacks.js',
143     ],
144     # All the files needed to run the unittests.
145     'remoting_webapp_unittests_all_files': [
146       'webapp/crd/html/menu_button.css',
147       '<@(remoting_webapp_unittests_all_js_files)',
148     ],
149     'remoting_webapp_unittests_template_main':
150       'webapp/crd/html/template_unittests.html',
152     #
153     # Shared webapp JavaScript file groups.
154     #
156     # Auth (Google account) JavaScript files.
157     'remoting_webapp_shared_js_auth_google_files': [
158       'webapp/base/js/auth_init.js',
159       'webapp/base/js/identity.js',
160       'webapp/base/js/oauth2.js',
161       'webapp/base/js/oauth2_api.js',
162       'webapp/base/js/oauth2_api_impl.js',
163     ],
164     # Client JavaScript files.
165     'remoting_webapp_shared_js_client_files': [
166       'webapp/base/js/activity.js',
167       'webapp/base/js/client_plugin.js',
168       'webapp/base/js/client_plugin_host_desktop_impl.js',
169       'webapp/base/js/client_plugin_impl.js',
170       'webapp/base/js/client_session.js',
171       'webapp/base/js/client_session_factory.js',
172       'webapp/base/js/clipboard.js',
173       'webapp/base/js/connected_view.js',
174       'webapp/base/js/connection_info.js',
175       'webapp/base/js/credentials_provider.js',
176       'webapp/base/js/host_desktop.js',
177       'webapp/base/js/smart_reconnector.js',
178       'webapp/base/js/telemetry_event_writer.js',
179     ],
180     # Remoting core JavaScript files.
181     'remoting_webapp_shared_js_core_files': [
182       'webapp/base/js/application.js',
183       'webapp/base/js/base.js',
184       'webapp/base/js/ipc.js',
185       'webapp/base/js/modal_dialogs.js',
186       'webapp/base/js/platform.js',
187       'webapp/base/js/protocol_extension_manager.js',
188       'webapp/base/js/protocol_extension.js',
189       'webapp/base/js/error.js',
190       'webapp/base/js/plugin_settings.js',
191       'webapp/base/js/suspend_detector.js',
192       'webapp/base/js/typecheck.js',
193       'webapp/base/js/window_message_dispatcher.js',
194       'webapp/base/js/xhr_event_writer.js',
195       'webapp/base/js/xhr.js',
196     ],
197     # Host JavaScript files.
198     'remoting_webapp_shared_js_host_files': [
199       'webapp/base/js/host.js',
200       'webapp/base/js/host_settings.js',
201     ],
202     # Logging and stats JavaScript files.
203     'remoting_webapp_shared_js_logging_files': [
204       'webapp/base/js/chromoting_event.js',
205       'webapp/base/js/logger.js',
206       'webapp/base/js/format_iq.js',
207       'webapp/base/js/log_to_server.js',
208       'webapp/base/js/server_log_entry.js',
209       'webapp/base/js/session_logger.js',
210       'webapp/base/js/stats_accumulator.js',
211     ],
212     # Remoting signaling files.
213     'remoting_webapp_shared_js_signaling_files': [
214       'webapp/base/js/dns_blackhole_checker.js',
215       'webapp/base/js/fallback_signal_strategy.js',
216       'webapp/base/js/signal_strategy.js',
217       'webapp/base/js/tcp_socket.js',
218       'webapp/base/js/wcs_adapter.js',
219       'webapp/base/js/wcs_sandbox_container.js',
220       'webapp/base/js/xmpp_connection.js',
221       'webapp/base/js/xmpp_login_handler.js',
222       'webapp/base/js/xmpp_stream_parser.js',
223     ],
224     # Shared UI JavaScript files.
225     'remoting_webapp_shared_js_ui_files': [
226       'webapp/base/js/connection_dropped_dialog.js',
227       'webapp/base/js/connection_stats.js',
228       'webapp/base/js/l10n.js',
229       'webapp/base/js/ui_mode.js',
230       'webapp/base/js/viewport.js',
231       'webapp/base/js/window_shape.js',
232     ],
234     #
235     # DesktopRemoting webapp JavaScript file groups.
236     #
238     # Auth (apps v1) JavaScript files.
239     # These files aren't included directly from main.html. They are
240     # referenced from the manifest.json file (appsv1 only).
241     'remoting_webapp_js_auth_v1_files': [
242       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
243       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
244     ],
245     # Auth (client to host) JavaScript files.
246     'remoting_webapp_js_auth_client2host_files': [
247       'webapp/crd/js/third_party_host_permissions.js',
248       'webapp/crd/js/third_party_token_fetcher.js',
249     ],
250     # Cast extension handler JavaScript files.
251     'remoting_webapp_js_cast_extension_files': [
252       'webapp/crd/js/cast_extension_handler.js',
253     ],
254     # Client JavaScript files.
255     'remoting_webapp_js_client_files': [
256       'webapp/crd/js/apps_v2_migration.js',
257       'webapp/crd/js/event_handlers.js',
258       'webapp/crd/js/gcd_client.js',
259       'webapp/crd/js/video_frame_recorder.js',
260     ],
261     # Gnubby authentication JavaScript files.
262     'remoting_webapp_js_gnubby_auth_files': [
263       'webapp/crd/js/gnubby_auth_handler.js',
264     ],
265     # Files for controlling the local machine as a host.
266     # Includes both it2me and me2me files.
267     'remoting_webapp_js_host_control_files': [
268       'webapp/crd/js/buffered_signal_strategy.js',
269       'webapp/crd/js/host_controller.js',
270       'webapp/crd/js/host_daemon_facade.js',
271       'webapp/crd/js/host_screen.js',
272       'webapp/crd/js/host_session.js',
273       'webapp/crd/js/host_setup_dialog.js',
274       'webapp/crd/js/host_install_dialog.js',
275       'webapp/crd/js/host_installer.js',
276       'webapp/crd/js/it2me_host_facade.js',
277       'webapp/crd/js/paired_client_manager.js',
278     ],
279     # Files for displaying (in the client) info about available hosts.
280     'remoting_webapp_js_host_display_files': [
281       'webapp/crd/js/host_list.js',
282       'webapp/crd/js/host_list_api.js',
283       'webapp/crd/js/host_table_entry.js',
284       'webapp/crd/js/local_host_section.js',
286       # Must come after host_list_api.js because of an issue with
287       # JSCompiler.  If an implementation of an interface occurs in a
288       # file processed before the interface itself, the @override tag
289       # doesn't always work correctly.
290       'webapp/crd/js/combined_host_list_api.js',
291       'webapp/crd/js/gcd_host_list_api.js',
292       'webapp/crd/js/legacy_host_list_api.js',
293     ],
294     # The CRD-specific JavaScript files required by main.html.
295     'remoting_webapp_crd_js_ui_files': [
296       'webapp/crd/js/bump_scroller.js',
297       'webapp/crd/js/butter_bar.js',
298       'webapp/crd/js/crd_auth_dialog.js',
299       'webapp/crd/js/crd_event_handlers.js',
300       'webapp/crd/js/crd_experimental.js',
301       'webapp/crd/js/desktop_connected_view.js',
302       'webapp/crd/js/desktop_remoting.js',
303       'webapp/crd/js/desktop_remoting_activity.js',
304       'webapp/crd/js/desktop_viewport.js',
305       'webapp/crd/js/feedback.js',
306       'webapp/crd/js/fullscreen.js',
307       'webapp/crd/js/fullscreen_v1.js',
308       'webapp/crd/js/fullscreen_v2.js',
309       'webapp/crd/js/it2me_activity.js',
310       'webapp/crd/js/me2me_activity.js',
311       'webapp/crd/js/menu_button.js',
312       'webapp/crd/js/options_menu.js',
313       'webapp/crd/js/toolbar.js',
314       'webapp/crd/js/window_frame.js',
315     ],
317     #
318     # DesktopRemoting main.html generation files.
319     #
321     'remoting_webapp_template_main':
322       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
324     # The shared JavaScript files required by main.html.
325     # These files are shared with the unittest target.
326     'remoting_webapp_shared_main_html_js_files': [
327       # Include the core files first as it is required by the other files.
328       # Otherwise, Jscompile will complain.
329       '<@(remoting_webapp_shared_js_core_files)',
330       '<@(remoting_webapp_shared_js_auth_google_files)',
331       '<@(remoting_webapp_shared_js_client_files)',
332       '<@(remoting_webapp_shared_js_host_files)',
333       '<@(remoting_webapp_shared_js_logging_files)',
334       '<@(remoting_webapp_shared_js_signaling_files)',
335       '<@(remoting_webapp_shared_js_ui_files)',
336       '<@(remoting_webapp_js_auth_client2host_files)',
337       '<@(remoting_webapp_js_client_files)',
338       '<@(remoting_webapp_js_gnubby_auth_files)',
339       '<@(remoting_webapp_js_cast_extension_files)',
340       '<@(remoting_webapp_js_host_control_files)',
341       '<@(remoting_webapp_js_host_display_files)',
342     ],
344     # The JS files required by unittest.html.
345     'remoting_webapp_unittest_html_all_js_files': [
346       '<@(remoting_webapp_shared_main_html_js_files)',
347       '<@(remoting_webapp_crd_js_ui_files)',
348     ],
350     # The CRD-specific JavaScript files required by main.html.
351     'remoting_webapp_crd_main_html_all_js_files': [
352       '<@(remoting_webapp_shared_main_html_js_files)',
353       '<@(remoting_webapp_crd_js_ui_files)',
354       'webapp/crd/js/crd_main.js',
355     ],
357     # These template files are used to construct main.html.
358     'remoting_webapp_template_files': [
359       'webapp/base/html/client_plugin.html',
360       'webapp/crd/html/butter_bar.html',
361       'webapp/crd/html/dialog_auth.html',
362       'webapp/crd/html/dialog_client_connect_failed.html',
363       'webapp/crd/html/dialog_client_connecting.html',
364       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
365       'webapp/crd/html/dialog_client_pin_prompt.html',
366       'webapp/crd/html/dialog_client_session_finished.html',
367       'webapp/crd/html/dialog_client_third_party_auth.html',
368       'webapp/crd/html/dialog_client_unconnected.html',
369       'webapp/crd/html/dialog_confirm_host_delete.html',
370       'webapp/crd/html/dialog_connection_history.html',
371       'webapp/crd/html/dialog_host.html',
372       'webapp/crd/html/dialog_host_install.html',
373       'webapp/crd/html/dialog_host_setup.html',
374       'webapp/crd/html/dialog_manage_pairings.html',
375       'webapp/crd/html/dialog_token_refresh_failed.html',
376       'webapp/crd/html/toolbar.html',
377       'webapp/crd/html/ui_header.html',
378       'webapp/crd/html/ui_it2me.html',
379       'webapp/crd/html/ui_me2me.html',
380       'webapp/crd/html/window_frame.html',
381     ],
383     #
384     # Webapp background.html generation files.
385     #
387     'remoting_webapp_template_background':
388       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
390     # These JS files are specific to the background page and are not part of
391     # the main JS files.
392     'remoting_webapp_background_html_js_files': [
393       'webapp/base/js/chromoting_event.js',
394       'webapp/crd/js/activation_handler.js',
395       'webapp/crd/js/app_launcher.js',
396       'webapp/crd/js/background.js',
397     ],
399     # All the JavaScript files required by background.html.
400     'remoting_webapp_background_html_all_js_files': [
401       '<@(remoting_webapp_background_html_js_files)',
402       'webapp/base/js/base.js',
403       'webapp/base/js/error.js',
404       'webapp/base/js/identity.js',
405       'webapp/base/js/ipc.js',
406       'webapp/base/js/l10n.js',
407       'webapp/base/js/oauth2.js',
408       'webapp/base/js/oauth2_api.js',
409       'webapp/base/js/oauth2_api_impl.js',
410       'webapp/base/js/platform.js',
411       'webapp/base/js/plugin_settings.js',
412       'webapp/base/js/telemetry_event_writer.js',
413       'webapp/base/js/typecheck.js',
414       'webapp/base/js/xhr.js',
415       'webapp/base/js/xhr_event_writer.js',
416       'webapp/crd/js/host_installer.js',
417       'webapp/crd/js/host_session.js',
418       'webapp/crd/js/it2me_host_facade.js',
419     ],
421     #
422     # Webapp wcs_sandbox.html generation files.
423     #
425     'remoting_webapp_template_wcs_sandbox':
426       '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
428     # These JS files are specific to the WCS sandbox page and are not part of
429     # the main JS files.
430     'remoting_webapp_wcs_sandbox_html_js_files': [
431       'webapp/crd/js/wcs.js',
432       'webapp/crd/js/wcs_loader.js',
433       'webapp/crd/js/wcs_sandbox_content.js',
434       'webapp/crd/js/xhr_proxy.js',
435     ],
437     # All the JavaScript files required by wcs_sandbox.html.
438     'remoting_webapp_wcs_sandbox_html_all_js_files': [
439       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
440       'webapp/base/js/error.js',
441       'webapp/base/js/plugin_settings.js',
442     ],
444     #
445     # Webapp message_window.html generation files.
446     #
448     'remoting_webapp_template_message_window':
449       '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
451     # These JS files are specific to the message window page and are not part of
452     # the main JS files.
453     'remoting_webapp_message_window_html_js_files': [
454       'webapp/base/js/message_window.js',
455     ],
457     # All the JavaScript files required by message_window.html.
458     'remoting_webapp_message_window_html_all_js_files': [
459       '<@(remoting_webapp_message_window_html_js_files)',
460       'webapp/base/js/base.js',
461     ],
463     #
464     # All the JavaScript files required by credits.html
465     #
466     'remoting_webapp_credits_html_all_js_files': [
467       'webapp/base/js/credits_js.js',
468     ],
470     #
471     # Complete webapp JS and resource files.
472     #
474     # All the JavaScript files that are shared by webapps.
475     'remoting_webapp_shared_js_files': [
476       '<@(remoting_webapp_shared_main_html_js_files)',
477       '<@(remoting_webapp_background_html_js_files)',
478       '<@(remoting_webapp_message_window_html_js_files)',
479       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
480       # JS files referenced in manifest.json.
481       '<@(remoting_webapp_js_auth_v1_files)',
482     ],
484     # All the JavaScript files required by DesktopRemoting.
485     'remoting_webapp_crd_js_files': [
486       '<@(remoting_webapp_shared_js_files)',
487       '<@(remoting_webapp_crd_main_html_all_js_files)',
488       '<@(remoting_webapp_credits_html_all_js_files)',
489     ],
491     'remoting_webapp_info_files': [
492       'resources/chromoting16.webp',
493       'resources/chromoting48.webp',
494       'resources/chromoting128.webp',
495     ],
497     # All the resource files required by DesktopRemoting.
498     'remoting_webapp_resource_files': [
499       'resources/disclosure_arrow_down.webp',
500       'resources/disclosure_arrow_right.webp',
501       'resources/drag.webp',
502       'resources/host_setup_instructions.webp',
503       'resources/icon_close.webp',
504       'resources/icon_cross.webp',
505       'resources/icon_disconnect.webp',
506       'resources/icon_fullscreen.webp',
507       'resources/icon_host.webp',
508       'resources/icon_maximize_restore.webp',
509       'resources/icon_minimize.webp',
510       'resources/icon_options.webp',
511       'resources/icon_pencil.webp',
512       'resources/icon_warning.webp',
513       'resources/infographic_my_computers.webp',
514       'resources/infographic_remote_assistance.webp',
515       'resources/plus.webp',
516       'resources/reload.webp',
517       'resources/tick.webp',
518       'webapp/base/html/connection_stats.css',
519       'webapp/base/html/credits_css.css',
520       'webapp/base/html/main.css',
521       'webapp/base/html/message_window.css',
522       'webapp/base/resources/open_sans.css',
523       'webapp/base/resources/open_sans.woff',
524       'webapp/base/resources/spinner.gif',
525       'webapp/crd/html/butter_bar.css',
526       'webapp/crd/html/crd_main.css',
527       'webapp/crd/html/toolbar.css',
528       'webapp/crd/html/menu_button.css',
529       'webapp/crd/html/window_frame.css',
530       'webapp/crd/resources/scale-to-fit.webp',
531     ],
533     'remoting_webapp_crd_files': [
534       '<@(remoting_webapp_info_files)',
535       '<@(remoting_webapp_crd_js_files)',
536       '<@(remoting_webapp_resource_files)',
537     ],
539     # Files that contain localizable strings.
540     'desktop_remoting_webapp_localizable_files': [
541       'webapp/crd/manifest.json.jinja2',
542       '<(remoting_webapp_template_background)',
543       '<(remoting_webapp_template_main)',
544       '<(remoting_webapp_template_message_window)',
545       '<(remoting_webapp_template_wcs_sandbox)',
546       '<@(remoting_webapp_template_files)',
547       '<@(remoting_webapp_crd_js_files)',
548     ],
550   },