Revert of [Webapp Refactor] Remove remoting.SessionConnector. (patchset #3 id:60001...
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blobe327d72ffeb4872eff2d3cae8bc0528ad5954d6d
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 # Keep in sync with remoting/webapp/files.gni.
8   'variables': {
10     # Jscompile proto files.
11     # These provide type information for jscompile.
12     'remoting_webapp_js_proto_files': [
13       'webapp/js_proto/chrome_proto.js',
14       'webapp/js_proto/chrome_cast_proto.js',
15       'webapp/js_proto/chrome_event_proto.js',
16       'webapp/js_proto/dom_proto.js',
17       'webapp/js_proto/remoting_proto.js',
18     ],
20     #
21     # Webapp browsertest JavaScript files.
22     #
24     # Browser test files.
25     'remoting_webapp_browsertest_js_files': [
26       'webapp/browser_test/browser_test.js',
27       'webapp/browser_test/bump_scroll_browser_test.js',
28       'webapp/browser_test/cancel_pin_browser_test.js',
29       'webapp/browser_test/invalid_pin_browser_test.js',
30       'webapp/browser_test/it2me_browser_test.js',
31       'webapp/browser_test/scrollbar_browser_test.js',
32       'webapp/browser_test/timeout_waiter.js',
33       'webapp/browser_test/unauthenticated_browser_test.js',
34       'webapp/browser_test/update_pin_browser_test.js',
35     ],
36     # Browser test files.
37     'remoting_webapp_browsertest_js_mock_files': [
38       'webapp/crd/js/mock_client_plugin.js',
39       'webapp/crd/js/mock_host_list_api.js',
40       'webapp/crd/js/mock_identity.js',
41       'webapp/crd/js/mock_oauth2_api.js',
42       'webapp/crd/js/mock_session_connector.js',
43       'webapp/crd/js/mock_signal_strategy.js',
44     ],
45     'remoting_webapp_browsertest_js_proto_files': [
46       'webapp/js_proto/sinon_proto.js',
47       'webapp/js_proto/test_proto.js',
48       '<@(remoting_webapp_js_proto_files)',
49     ],
50     'remoting_webapp_browsertest_all_js_files': [
51       '<@(remoting_webapp_browsertest_js_files)',
52       '<@(remoting_webapp_browsertest_js_mock_files)',
53     ],
55     #
56     # Webapp unittest JavaScript files.
57     #
59     # These product files are excluded from our JavaScript unittest
60     'remoting_webapp_unittests_exclude_js_files': [
61       # background.js is where the onLoad handler is defined, which
62       # makes it the entry point of the background page.
63       'webapp/crd/js/background.js',
64     ],
65     # The unit test cases for the webapp
66     'remoting_webapp_unittests_js_files': [
67       # TODO(jrw): Move spy_promise to base.
68       'webapp/unittests/spy_promise.js',
69       'webapp/unittests/spy_promise_unittest.js',
70       'webapp/base/js/base_unittest.js',
71       'webapp/base/js/base_event_hook_unittest.js',
72       'webapp/base/js/base_inherits_unittest.js',
73       'webapp/base/js/ipc_unittest.js',
74       'webapp/base/js/protocol_extension_manager_unittest.js',
75       'webapp/crd/js/apps_v2_migration_unittest.js',
76       'webapp/crd/js/desktop_viewport_unittest.js',
77       'webapp/crd/js/dns_blackhole_checker_unittest.js',
78       'webapp/crd/js/error_unittest.js',
79       'webapp/crd/js/fallback_signal_strategy_unittest.js',
80       'webapp/crd/js/gcd_client_unittest.js',
81       'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
82       'webapp/crd/js/host_controller_unittest.js',
83       'webapp/crd/js/host_daemon_facade_unittest.js',
84       'webapp/crd/js/host_table_entry_unittest.js',
85       'webapp/crd/js/identity_unittest.js',
86       'webapp/crd/js/l10n_unittest.js',
87       'webapp/crd/js/menu_button_unittest.js',
88       'webapp/crd/js/mock_xhr_unittest.js',
89       'webapp/crd/js/typecheck_unittest.js',
90       'webapp/crd/js/xhr_unittest.js',
91       'webapp/crd/js/xmpp_connection_unittest.js',
92       'webapp/crd/js/xmpp_login_handler_unittest.js',
93       'webapp/crd/js/xmpp_stream_parser_unittest.js',
94     ],
95     'remoting_webapp_unittests_js_mock_files': [
96       # Some proto files can be repurposed as simple mocks for the unittests.
97       # Note that some defs in chrome_proto are overwritten by chrome_mocks.
98       'webapp/crd/js/mock_host_daemon_facade.js',
99       'webapp/crd/js/mock_signal_strategy.js',
100       'webapp/js_proto/chrome_proto.js',
101       'webapp/js_proto/chrome_mocks.js',
102       'webapp/unittests/sinon_helpers.js',
103       'webapp/crd/js/mock_xhr.js',
104     ],
105     # Prototypes for objects that are not mocked.
106     'remoting_webapp_unittests_js_proto_files': [
107       'webapp/js_proto/chrome_cast_proto.js',
108       'webapp/js_proto/dom_proto.js',
109       'webapp/js_proto/remoting_proto.js',
110       'webapp/js_proto/qunit_proto.js',
111       'webapp/js_proto/sinon_proto.js',
112     ],
113     'remoting_webapp_unittests_all_js_files': [
114       '<@(remoting_webapp_unittests_js_files)',
115       '<@(remoting_webapp_unittests_js_mock_files)',
116     ],
117     # All the files needed to run the unittests.
118     'remoting_webapp_unittests_all_files': [
119       'webapp/crd/html/menu_button.css',
120       '<@(remoting_webapp_unittests_all_js_files)',
121     ],
122     'remoting_webapp_unittests_template_main':
123       'webapp/crd/html/template_unittests.html',
125     #
126     # Webapp JavaScript file groups.
127     #
129     # Auth (apps v1) JavaScript files.
130     # These files aren't included directly from main.html. They are
131     # referenced from the manifest.json file (appsv1 only).
132     'remoting_webapp_js_auth_v1_files': [
133       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
134       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
135     ],
136     # Auth (client to host) JavaScript files.
137     'remoting_webapp_js_auth_client2host_files': [
138       'webapp/crd/js/third_party_host_permissions.js',
139       'webapp/crd/js/third_party_token_fetcher.js',
140     ],
141     # Auth (Google account) JavaScript files.
142     'remoting_webapp_js_auth_google_files': [
143       'webapp/base/js/auth_init.js',
144       'webapp/crd/js/identity.js',
145       'webapp/crd/js/oauth2.js',
146       'webapp/crd/js/oauth2_api.js',
147       'webapp/crd/js/oauth2_api_impl.js',
148     ],
149     # Cast extension handler JavaScript files.
150     'remoting_webapp_js_cast_extension_files': [
151       'webapp/crd/js/cast_extension_handler.js',
152     ],
153     # Client JavaScript files.
154     'remoting_webapp_js_client_files': [
155       'webapp/crd/js/activity.js',
156       'webapp/crd/js/client_plugin.js',
157       'webapp/crd/js/client_plugin_impl.js',
158       'webapp/crd/js/client_plugin_host_desktop_impl.js',
159       'webapp/crd/js/client_session.js',
160       'webapp/crd/js/clipboard.js',
161       'webapp/crd/js/connected_view.js',
162       'webapp/crd/js/connection_info.js',
163       'webapp/crd/js/credentials_provider.js',
164       'webapp/crd/js/desktop_connected_view.js',
165       'webapp/crd/js/host_desktop.js',
166       'webapp/crd/js/session_connector.js',
167       'webapp/crd/js/session_connector_impl.js',
168       'webapp/crd/js/smart_reconnector.js',
169       'webapp/crd/js/video_frame_recorder.js',
170     ],
171     # Remoting core JavaScript files.
172     'remoting_webapp_js_core_files': [
173       'webapp/base/js/app_capabilities.js',
174       'webapp/base/js/application.js',
175       'webapp/base/js/base.js',
176       'webapp/base/js/ipc.js',
177       'webapp/base/js/modal_dialogs.js',
178       'webapp/base/js/platform.js',
179       'webapp/base/js/protocol_extension_manager.js',
180       'webapp/base/js/protocol_extension.js',
181       'webapp/crd/js/apps_v2_migration.js',
182       'webapp/crd/js/error.js',
183       'webapp/crd/js/event_handlers.js',
184       'webapp/crd/js/plugin_settings.js',
185       'webapp/crd/js/typecheck.js',
186       'webapp/crd/js/xhr.js',
187       'webapp/crd/js/gcd_client.js',
188     ],
189     # Gnubby authentication JavaScript files.
190     'remoting_webapp_js_gnubby_auth_files': [
191       'webapp/crd/js/gnubby_auth_handler.js',
192     ],
193     # Host JavaScript files.
194     'remoting_webapp_js_host_files': [
195       'webapp/crd/js/host.js',
196       'webapp/crd/js/host_settings.js',
197     ],
198     # Files for controlling the local machine as a host.
199     # Includes both it2me and me2me files.
200     'remoting_webapp_js_host_control_files': [
201       'webapp/crd/js/host_controller.js',
202       'webapp/crd/js/host_daemon_facade.js',
203       'webapp/crd/js/host_screen.js',
204       'webapp/crd/js/host_session.js',
205       'webapp/crd/js/host_setup_dialog.js',
206       'webapp/crd/js/host_install_dialog.js',
207       'webapp/crd/js/host_installer.js',
208       'webapp/crd/js/it2me_host_facade.js',
209       'webapp/crd/js/paired_client_manager.js',
210     ],
211     # Files for displaying (in the client) info about available hosts.
212     'remoting_webapp_js_host_display_files': [
213       'webapp/crd/js/host_list.js',
214       'webapp/crd/js/host_list_api.js',
215       'webapp/crd/js/host_list_api_impl.js',
216       'webapp/crd/js/host_table_entry.js',
217       'webapp/crd/js/local_host_section.js',
218     ],
219     # Logging and stats JavaScript files.
220     'remoting_webapp_js_logging_files': [
221       'webapp/crd/js/format_iq.js',
222       'webapp/crd/js/log_to_server.js',
223       'webapp/crd/js/server_log_entry.js',
224       'webapp/crd/js/stats_accumulator.js',
225     ],
226     # Remoting signaling files.
227     'remoting_webapp_js_signaling_files': [
228       'webapp/crd/js/dns_blackhole_checker.js',
229       'webapp/crd/js/fallback_signal_strategy.js',
230       'webapp/crd/js/signal_strategy.js',
231       'webapp/crd/js/tcp_socket.js',
232       'webapp/crd/js/wcs_adapter.js',
233       'webapp/crd/js/wcs_sandbox_container.js',
234       'webapp/crd/js/xmpp_connection.js',
235       'webapp/crd/js/xmpp_login_handler.js',
236       'webapp/crd/js/xmpp_stream_parser.js',
237     ],
238     # UI JavaScript files.
239     'remoting_webapp_js_ui_files': [
240       'webapp/base/js/window_shape.js',
241       'webapp/crd/js/bump_scroller.js',
242       'webapp/crd/js/butter_bar.js',
243       'webapp/crd/js/connection_stats.js',
244       'webapp/crd/js/desktop_viewport.js',
245       'webapp/crd/js/feedback.js',
246       'webapp/crd/js/fullscreen.js',
247       'webapp/crd/js/fullscreen_v1.js',
248       'webapp/crd/js/fullscreen_v2.js',
249       'webapp/crd/js/l10n.js',
250       'webapp/crd/js/menu_button.js',
251       'webapp/crd/js/options_menu.js',
252       'webapp/crd/js/ui_mode.js',
253       'webapp/crd/js/toolbar.js',
254       'webapp/crd/js/window_frame.js',
255     ],
257     #
258     # DesktopRemoting main.html generation files.
259     #
261     'remoting_webapp_template_main':
262       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
264     # The shared JavaScript files required by main.html.
265     'remoting_webapp_shared_main_html_js_files': [
266       # Include the core files first as it is required by the other files.
267       # Otherwise, Jscompile will complain.
268       '<@(remoting_webapp_js_core_files)',
269       '<@(remoting_webapp_js_auth_client2host_files)',
270       '<@(remoting_webapp_js_auth_google_files)',
271       '<@(remoting_webapp_js_client_files)',
272       '<@(remoting_webapp_js_gnubby_auth_files)',
273       '<@(remoting_webapp_js_cast_extension_files)',
274       '<@(remoting_webapp_js_host_files)',
275       '<@(remoting_webapp_js_host_control_files)',
276       '<@(remoting_webapp_js_host_display_files)',
277       '<@(remoting_webapp_js_logging_files)',
278       '<@(remoting_webapp_js_ui_files)',
279       '<@(remoting_webapp_js_signaling_files)',
280       # Uncomment this line to include browser test files in the web app
281       # to expedite debugging or local development.
282       #'<@(remoting_webapp_browsertest_all_js_files)',
283     ],
285     # The CRD-specific JavaScript files required by main.html.
286     'remoting_webapp_crd_main_html_all_js_files': [
287       '<@(remoting_webapp_shared_main_html_js_files)',
288       'webapp/crd/js/crd_auth_dialog.js',
289       'webapp/crd/js/crd_event_handlers.js',
290       'webapp/crd/js/crd_experimental.js',
291       'webapp/crd/js/crd_main.js',
292       'webapp/crd/js/desktop_remoting.js',
293       'webapp/crd/js/desktop_remoting_activity.js',
294       'webapp/crd/js/it2me_activity.js',
295       'webapp/crd/js/me2me_activity.js',
296     ],
298     # These template files are used to construct main.html.
299     'remoting_webapp_template_files': [
300       'webapp/base/html/client_plugin.html',
301       'webapp/crd/html/butter_bar.html',
302       'webapp/crd/html/dialog_auth.html',
303       'webapp/crd/html/dialog_client_connect_failed.html',
304       'webapp/crd/html/dialog_client_connecting.html',
305       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
306       'webapp/crd/html/dialog_client_pin_prompt.html',
307       'webapp/crd/html/dialog_client_session_finished.html',
308       'webapp/crd/html/dialog_client_third_party_auth.html',
309       'webapp/crd/html/dialog_client_unconnected.html',
310       'webapp/crd/html/dialog_confirm_host_delete.html',
311       'webapp/crd/html/dialog_connection_history.html',
312       'webapp/crd/html/dialog_host.html',
313       'webapp/crd/html/dialog_host_install.html',
314       'webapp/crd/html/dialog_host_setup.html',
315       'webapp/crd/html/dialog_manage_pairings.html',
316       'webapp/crd/html/dialog_token_refresh_failed.html',
317       'webapp/crd/html/toolbar.html',
318       'webapp/crd/html/ui_header.html',
319       'webapp/crd/html/ui_it2me.html',
320       'webapp/crd/html/ui_me2me.html',
321       'webapp/crd/html/window_frame.html',
322     ],
324     #
325     # Webapp background.html generation files.
326     #
328     'remoting_webapp_template_background':
329       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
331     # These JS files are specific to the background page and are not part of
332     # the main JS files.
333     'remoting_webapp_background_html_js_files': [
334       'webapp/base/js/message_window_helper.js',
335       'webapp/base/js/message_window_manager.js',
336       'webapp/crd/js/activation_handler.js',
337       'webapp/crd/js/app_launcher.js',
338       'webapp/crd/js/background.js',
339     ],
341     # All the JavaScript files required by background.html.
342     'remoting_webapp_background_html_all_js_files': [
343       '<@(remoting_webapp_background_html_js_files)',
344       'webapp/base/js/base.js',
345       'webapp/base/js/ipc.js',
346       'webapp/crd/js/client_session.js',
347       'webapp/crd/js/error.js',
348       'webapp/crd/js/host_installer.js',
349       'webapp/crd/js/host_session.js',
350       'webapp/crd/js/identity.js',
351       'webapp/crd/js/it2me_host_facade.js',
352       'webapp/crd/js/l10n.js',
353       'webapp/crd/js/oauth2.js',
354       'webapp/crd/js/oauth2_api.js',
355       'webapp/crd/js/oauth2_api_impl.js',
356       'webapp/crd/js/plugin_settings.js',
357       'webapp/crd/js/typecheck.js',
358       'webapp/crd/js/xhr.js',
359     ],
361     #
362     # Webapp wcs_sandbox.html generation files.
363     #
365     'remoting_webapp_template_wcs_sandbox':
366       '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
368     # These JS files are specific to the WCS sandbox page and are not part of
369     # the main JS files.
370     'remoting_webapp_wcs_sandbox_html_js_files': [
371       'webapp/crd/js/wcs.js',
372       'webapp/crd/js/wcs_loader.js',
373       'webapp/crd/js/wcs_sandbox_content.js',
374       'webapp/crd/js/xhr_proxy.js',
375     ],
377     # All the JavaScript files required by wcs_sandbox.html.
378     'remoting_webapp_wcs_sandbox_html_all_js_files': [
379       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
380       'webapp/crd/js/error.js',
381       'webapp/crd/js/plugin_settings.js',
382     ],
384     #
385     # Webapp message_window.html generation files.
386     #
388     'remoting_webapp_template_message_window':
389       '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
391     # These JS files are specific to the message window page and are not part of
392     # the main JS files.
393     'remoting_webapp_message_window_html_js_files': [
394       'webapp/base/js/message_window.js',
395     ],
397     # All the JavaScript files required by message_window.html.
398     'remoting_webapp_message_window_html_all_js_files': [
399       '<@(remoting_webapp_message_window_html_js_files)',
400       'webapp/base/js/base.js',
401     ],
403     #
404     # Complete webapp JS and resource files.
405     #
407     # All the JavaScript files that are shared by webapps.
408     'remoting_webapp_shared_js_files': [
409       '<@(remoting_webapp_shared_main_html_js_files)',
410       '<@(remoting_webapp_background_html_js_files)',
411       '<@(remoting_webapp_message_window_html_js_files)',
412       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
413       # JS files referenced in manifest.json.
414       '<@(remoting_webapp_js_auth_v1_files)',
415     ],
417     # All the JavaScript files required by DesktopRemoting.
418     'remoting_webapp_crd_js_files': [
419       '<@(remoting_webapp_shared_js_files)',
420       '<@(remoting_webapp_crd_main_html_all_js_files)',
421     ],
423     'remoting_webapp_info_files': [
424       'resources/chromoting16.webp',
425       'resources/chromoting48.webp',
426       'resources/chromoting128.webp',
427     ],
429     # All the resource files required by DesktopRemoting.
430     'remoting_webapp_resource_files': [
431       'resources/disclosure_arrow_down.webp',
432       'resources/disclosure_arrow_right.webp',
433       'resources/drag.webp',
434       'resources/host_setup_instructions.webp',
435       'resources/icon_close.webp',
436       'resources/icon_cross.webp',
437       'resources/icon_disconnect.webp',
438       'resources/icon_fullscreen.webp',
439       'resources/icon_help.webp',
440       'resources/icon_host.webp',
441       'resources/icon_maximize_restore.webp',
442       'resources/icon_minimize.webp',
443       'resources/icon_options.webp',
444       'resources/icon_pencil.webp',
445       'resources/icon_warning.webp',
446       'resources/infographic_my_computers.webp',
447       'resources/infographic_remote_assistance.webp',
448       'resources/plus.webp',
449       'resources/reload.webp',
450       'resources/tick.webp',
451       'webapp/base/html/connection_stats.css',
452       'webapp/base/html/main.css',
453       'webapp/base/html/message_window.css',
454       'webapp/base/resources/open_sans.css',
455       'webapp/base/resources/open_sans.woff',
456       'webapp/base/resources/spinner.gif',
457       'webapp/crd/html/butter_bar.css',
458       'webapp/crd/html/toolbar.css',
459       'webapp/crd/html/menu_button.css',
460       'webapp/crd/html/window_frame.css',
461       'webapp/crd/resources/scale-to-fit.webp',
462     ],
464     'remoting_webapp_crd_files': [
465       '<@(remoting_webapp_info_files)',
466       '<@(remoting_webapp_crd_js_files)',
467       '<@(remoting_webapp_resource_files)',
468     ],
470     # Files that contain localizable strings.
471     'desktop_remoting_webapp_localizable_files': [
472       'webapp/crd/manifest.json.jinja2',
473       '<(remoting_webapp_template_background)',
474       '<(remoting_webapp_template_main)',
475       '<(remoting_webapp_template_message_window)',
476       '<(remoting_webapp_template_wcs_sandbox)',
477       '<@(remoting_webapp_template_files)',
478       '<@(remoting_webapp_crd_js_files)',
479     ],
481   },