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