Add a nacl module args file.
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blob9db4c63f1d8be736525c1358db4dc44fd39e7999
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     # 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',
25     ],
27     #
28     # Webapp browsertest JavaScript files.
29     #
31     # Browser test 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',
43     ],
44     # Browser test files.
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',
51     ],
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)',
56     ],
57     'remoting_webapp_browsertest_all_js_files': [
58       '<@(remoting_webapp_browsertest_js_files)',
59       '<@(remoting_webapp_browsertest_js_mock_files)',
60     ],
61     'remoting_webapp_browsertest_main_html_extra_files': [
62       '<@(remoting_webapp_browsertest_all_js_files)',
63       '../third_party/sinonjs/src/sinon.js',
64     ],
66     #
67     # Webapp unittest JavaScript files.
68     #
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',
75     ],
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_event_writer_unittest.js',
98       'webapp/base/js/xhr_unittest.js',
99       'webapp/base/js/xmpp_connection_unittest.js',
100       'webapp/base/js/xmpp_login_handler_unittest.js',
101       'webapp/base/js/xmpp_stream_parser_unittest.js',
102       'webapp/crd/js/apps_v2_migration_unittest.js',
103       'webapp/crd/js/gcd_client_unittest.js',
104       'webapp/crd/js/gcd_client_with_mock_xhr_unittest.js',
105       'webapp/crd/js/host_controller_unittest.js',
106       'webapp/crd/js/host_daemon_facade_unittest.js',
107       'webapp/crd/js/host_table_entry_unittest.js',
108       'webapp/crd/js/legacy_host_list_api_unittest.js',
109       'webapp/crd/js/menu_button_unittest.js',
110       'webapp/crd/js/mock_xhr_unittest.js',
111     ],
112     'remoting_webapp_unittests_js_mock_files': [
113       'webapp/crd/js/mock_client_plugin.js',
114       'webapp/crd/js/mock_host_daemon_facade.js',
115       'webapp/crd/js/mock_host_list_api.js',
116       'webapp/crd/js/mock_identity.js',
117       'webapp/crd/js/mock_signal_strategy.js',
118       'webapp/js_proto/chrome_mocks.js',
119       'webapp/unittests/sinon_helpers.js',
120       'webapp/crd/js/mock_xhr.js',
121     ],
122     # Prototypes for objects that are not mocked.
123     'remoting_webapp_unittests_js_proto_files': [
124       'webapp/js_proto/chrome_cast_proto.js',
125       'webapp/js_proto/chrome_proto.js',
126       'webapp/js_proto/dom_proto.js',
127       'webapp/js_proto/remoting_proto.js',
128       'webapp/js_proto/qunit_proto.js',
129       'webapp/js_proto/sinon_proto.js',
130     ],
131     'remoting_webapp_unittests_all_js_files': [
132       '<@(remoting_webapp_unittests_js_files)',
133       '<@(remoting_webapp_unittests_js_mock_files)',
134       'webapp/unittests/qunit_callbacks.js',
135     ],
136     # All the files needed to run the unittests.
137     'remoting_webapp_unittests_all_files': [
138       'webapp/crd/html/menu_button.css',
139       '<@(remoting_webapp_unittests_all_js_files)',
140     ],
141     'remoting_webapp_unittests_template_main':
142       'webapp/crd/html/template_unittests.html',
144     #
145     # Shared webapp JavaScript file groups.
146     #
148     # Auth (Google account) JavaScript files.
149     'remoting_webapp_shared_js_auth_google_files': [
150       'webapp/base/js/auth_init.js',
151       'webapp/base/js/identity.js',
152       'webapp/base/js/oauth2.js',
153       'webapp/base/js/oauth2_api.js',
154       'webapp/base/js/oauth2_api_impl.js',
155     ],
156     # Client JavaScript files.
157     'remoting_webapp_shared_js_client_files': [
158       'webapp/base/js/activity.js',
159       'webapp/base/js/client_plugin.js',
160       'webapp/base/js/client_plugin_host_desktop_impl.js',
161       'webapp/base/js/client_plugin_impl.js',
162       'webapp/base/js/client_session.js',
163       'webapp/base/js/client_session_factory.js',
164       'webapp/base/js/clipboard.js',
165       'webapp/base/js/connected_view.js',
166       'webapp/base/js/connection_info.js',
167       'webapp/base/js/credentials_provider.js',
168       'webapp/base/js/host_desktop.js',
169       'webapp/base/js/smart_reconnector.js',
170     ],
171     # Remoting core JavaScript files.
172     'remoting_webapp_shared_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/base/js/error.js',
182       'webapp/base/js/plugin_settings.js',
183       'webapp/base/js/suspend_detector.js',
184       'webapp/base/js/typecheck.js',
185       'webapp/base/js/xhr_event_writer.js',
186       'webapp/base/js/xhr.js',
187     ],
188     # Host JavaScript files.
189     'remoting_webapp_shared_js_host_files': [
190       'webapp/base/js/host.js',
191       'webapp/base/js/host_settings.js',
192     ],
193     # Logging and stats JavaScript files.
194     'remoting_webapp_shared_js_logging_files': [
195       'webapp/base/js/format_iq.js',
196       'webapp/base/js/log_to_server.js',
197       'webapp/base/js/server_log_entry.js',
198       'webapp/base/js/stats_accumulator.js',
199     ],
200     # Remoting signaling files.
201     'remoting_webapp_shared_js_signaling_files': [
202       'webapp/base/js/dns_blackhole_checker.js',
203       'webapp/base/js/fallback_signal_strategy.js',
204       'webapp/base/js/signal_strategy.js',
205       'webapp/base/js/tcp_socket.js',
206       'webapp/base/js/wcs_adapter.js',
207       'webapp/base/js/wcs_sandbox_container.js',
208       'webapp/base/js/xmpp_connection.js',
209       'webapp/base/js/xmpp_login_handler.js',
210       'webapp/base/js/xmpp_stream_parser.js',
211     ],
212     # Shared UI JavaScript files.
213     'remoting_webapp_shared_js_ui_files': [
214       'webapp/base/js/connection_dropped_dialog.js',
215       'webapp/base/js/connection_stats.js',
216       'webapp/base/js/l10n.js',
217       'webapp/base/js/ui_mode.js',
218       'webapp/base/js/viewport.js',
219       'webapp/base/js/window_shape.js',
220     ],
222     #
223     # DesktopRemoting webapp JavaScript file groups.
224     #
226     # Auth (apps v1) JavaScript files.
227     # These files aren't included directly from main.html. They are
228     # referenced from the manifest.json file (appsv1 only).
229     'remoting_webapp_js_auth_v1_files': [
230       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
231       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
232     ],
233     # Auth (client to host) JavaScript files.
234     'remoting_webapp_js_auth_client2host_files': [
235       'webapp/crd/js/third_party_host_permissions.js',
236       'webapp/crd/js/third_party_token_fetcher.js',
237     ],
238     # Cast extension handler JavaScript files.
239     'remoting_webapp_js_cast_extension_files': [
240       'webapp/crd/js/cast_extension_handler.js',
241     ],
242     # Client JavaScript files.
243     'remoting_webapp_js_client_files': [
244       'webapp/crd/js/apps_v2_migration.js',
245       'webapp/crd/js/event_handlers.js',
246       'webapp/crd/js/gcd_client.js',
247       'webapp/crd/js/video_frame_recorder.js',
248     ],
249     # Gnubby authentication JavaScript files.
250     'remoting_webapp_js_gnubby_auth_files': [
251       'webapp/crd/js/gnubby_auth_handler.js',
252     ],
253     # Files for controlling the local machine as a host.
254     # Includes both it2me and me2me files.
255     'remoting_webapp_js_host_control_files': [
256       'webapp/crd/js/buffered_signal_strategy.js',
257       'webapp/crd/js/host_controller.js',
258       'webapp/crd/js/host_daemon_facade.js',
259       'webapp/crd/js/host_screen.js',
260       'webapp/crd/js/host_session.js',
261       'webapp/crd/js/host_setup_dialog.js',
262       'webapp/crd/js/host_install_dialog.js',
263       'webapp/crd/js/host_installer.js',
264       'webapp/crd/js/it2me_host_facade.js',
265       'webapp/crd/js/paired_client_manager.js',
266     ],
267     # Files for displaying (in the client) info about available hosts.
268     'remoting_webapp_js_host_display_files': [
269       'webapp/crd/js/host_list.js',
270       'webapp/crd/js/host_list_api.js',
271       'webapp/crd/js/host_table_entry.js',
272       'webapp/crd/js/local_host_section.js',
274       # Must come after host_list_api.js because of an issue with
275       # JSCompiler.  If an implementation of an interface occurs in a
276       # file processed before the interface itself, the @override tag
277       # doesn't always work correctly.
278       'webapp/crd/js/gcd_host_list_api.js',
279       'webapp/crd/js/legacy_host_list_api.js',
280     ],
281     # The CRD-specific JavaScript files required by main.html.
282     'remoting_webapp_crd_js_ui_files': [
283       'webapp/crd/js/bump_scroller.js',
284       'webapp/crd/js/butter_bar.js',
285       'webapp/crd/js/crd_auth_dialog.js',
286       'webapp/crd/js/crd_event_handlers.js',
287       'webapp/crd/js/crd_experimental.js',
288       'webapp/crd/js/desktop_connected_view.js',
289       'webapp/crd/js/desktop_remoting.js',
290       'webapp/crd/js/desktop_remoting_activity.js',
291       'webapp/crd/js/desktop_viewport.js',
292       'webapp/crd/js/feedback.js',
293       'webapp/crd/js/fullscreen.js',
294       'webapp/crd/js/fullscreen_v1.js',
295       'webapp/crd/js/fullscreen_v2.js',
296       'webapp/crd/js/it2me_activity.js',
297       'webapp/crd/js/me2me_activity.js',
298       'webapp/crd/js/menu_button.js',
299       'webapp/crd/js/options_menu.js',
300       'webapp/crd/js/toolbar.js',
301       'webapp/crd/js/window_frame.js',
302     ],
304     #
305     # DesktopRemoting main.html generation files.
306     #
308     'remoting_webapp_template_main':
309       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
311     # The shared JavaScript files required by main.html.
312     # These files are shared with the unittest target.
313     'remoting_webapp_shared_main_html_js_files': [
314       # Include the core files first as it is required by the other files.
315       # Otherwise, Jscompile will complain.
316       '<@(remoting_webapp_shared_js_core_files)',
317       '<@(remoting_webapp_shared_js_auth_google_files)',
318       '<@(remoting_webapp_shared_js_client_files)',
319       '<@(remoting_webapp_shared_js_host_files)',
320       '<@(remoting_webapp_shared_js_logging_files)',
321       '<@(remoting_webapp_shared_js_signaling_files)',
322       '<@(remoting_webapp_shared_js_ui_files)',
323       '<@(remoting_webapp_js_auth_client2host_files)',
324       '<@(remoting_webapp_js_client_files)',
325       '<@(remoting_webapp_js_gnubby_auth_files)',
326       '<@(remoting_webapp_js_cast_extension_files)',
327       '<@(remoting_webapp_js_host_control_files)',
328       '<@(remoting_webapp_js_host_display_files)',
329     ],
331     # The JS files required by unittest.html.
332     'remoting_webapp_unittest_html_all_js_files': [
333       '<@(remoting_webapp_shared_main_html_js_files)',
334       '<@(remoting_webapp_crd_js_ui_files)',
335     ],
337     # The CRD-specific JavaScript files required by main.html.
338     'remoting_webapp_crd_main_html_all_js_files': [
339       '<@(remoting_webapp_shared_main_html_js_files)',
340       '<@(remoting_webapp_crd_js_ui_files)',
341       'webapp/crd/js/crd_main.js',
342     ],
344     # These template files are used to construct main.html.
345     'remoting_webapp_template_files': [
346       'webapp/base/html/client_plugin.html',
347       'webapp/crd/html/butter_bar.html',
348       'webapp/crd/html/dialog_auth.html',
349       'webapp/crd/html/dialog_client_connect_failed.html',
350       'webapp/crd/html/dialog_client_connecting.html',
351       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
352       'webapp/crd/html/dialog_client_pin_prompt.html',
353       'webapp/crd/html/dialog_client_session_finished.html',
354       'webapp/crd/html/dialog_client_third_party_auth.html',
355       'webapp/crd/html/dialog_client_unconnected.html',
356       'webapp/crd/html/dialog_confirm_host_delete.html',
357       'webapp/crd/html/dialog_connection_history.html',
358       'webapp/crd/html/dialog_host.html',
359       'webapp/crd/html/dialog_host_install.html',
360       'webapp/crd/html/dialog_host_setup.html',
361       'webapp/crd/html/dialog_manage_pairings.html',
362       'webapp/crd/html/dialog_token_refresh_failed.html',
363       'webapp/crd/html/toolbar.html',
364       'webapp/crd/html/ui_header.html',
365       'webapp/crd/html/ui_it2me.html',
366       'webapp/crd/html/ui_me2me.html',
367       'webapp/crd/html/window_frame.html',
368     ],
370     #
371     # Webapp background.html generation files.
372     #
374     'remoting_webapp_template_background':
375       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
377     # These JS files are specific to the background page and are not part of
378     # the main JS files.
379     'remoting_webapp_background_html_js_files': [
380       'webapp/base/js/message_window_helper.js',
381       'webapp/base/js/message_window_manager.js',
382       'webapp/crd/js/activation_handler.js',
383       'webapp/crd/js/app_launcher.js',
384       'webapp/crd/js/background.js',
385     ],
387     # All the JavaScript files required by background.html.
388     'remoting_webapp_background_html_all_js_files': [
389       '<@(remoting_webapp_background_html_js_files)',
390       'webapp/base/js/base.js',
391       'webapp/base/js/error.js',
392       'webapp/base/js/identity.js',
393       'webapp/base/js/ipc.js',
394       'webapp/base/js/l10n.js',
395       'webapp/base/js/oauth2.js',
396       'webapp/base/js/oauth2_api.js',
397       'webapp/base/js/oauth2_api_impl.js',
398       'webapp/base/js/plugin_settings.js',
399       'webapp/base/js/typecheck.js',
400       'webapp/base/js/xhr.js',
401       'webapp/crd/js/host_installer.js',
402       'webapp/crd/js/host_session.js',
403       'webapp/crd/js/it2me_host_facade.js',
404     ],
406     #
407     # Webapp wcs_sandbox.html generation files.
408     #
410     'remoting_webapp_template_wcs_sandbox':
411       '<(DEPTH)/remoting/webapp/base/html/template_wcs_sandbox.html',
413     # These JS files are specific to the WCS sandbox page and are not part of
414     # the main JS files.
415     'remoting_webapp_wcs_sandbox_html_js_files': [
416       'webapp/crd/js/wcs.js',
417       'webapp/crd/js/wcs_loader.js',
418       'webapp/crd/js/wcs_sandbox_content.js',
419       'webapp/crd/js/xhr_proxy.js',
420     ],
422     # All the JavaScript files required by wcs_sandbox.html.
423     'remoting_webapp_wcs_sandbox_html_all_js_files': [
424       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
425       'webapp/base/js/error.js',
426       'webapp/base/js/plugin_settings.js',
427     ],
429     #
430     # Webapp message_window.html generation files.
431     #
433     'remoting_webapp_template_message_window':
434       '<(DEPTH)/remoting/webapp/base/html/template_message_window.html',
436     # These JS files are specific to the message window page and are not part of
437     # the main JS files.
438     'remoting_webapp_message_window_html_js_files': [
439       'webapp/base/js/message_window.js',
440     ],
442     # All the JavaScript files required by message_window.html.
443     'remoting_webapp_message_window_html_all_js_files': [
444       '<@(remoting_webapp_message_window_html_js_files)',
445       'webapp/base/js/base.js',
446     ],
448     #
449     # All the JavaScript files required by credits.html
450     #
451     
452     'remoting_webapp_credits_html_all_js_files': [
453       'webapp/base/js/credits.js',
454     ],
456     #
457     # Complete webapp JS and resource files.
458     #
460     # All the JavaScript files that are shared by webapps.
461     'remoting_webapp_shared_js_files': [
462       '<@(remoting_webapp_shared_main_html_js_files)',
463       '<@(remoting_webapp_background_html_js_files)',
464       '<@(remoting_webapp_message_window_html_js_files)',
465       '<@(remoting_webapp_wcs_sandbox_html_js_files)',
466       # JS files referenced in manifest.json.
467       '<@(remoting_webapp_js_auth_v1_files)',
468     ],
470     # All the JavaScript files required by DesktopRemoting.
471     'remoting_webapp_crd_js_files': [
472       '<@(remoting_webapp_shared_js_files)',
473       '<@(remoting_webapp_crd_main_html_all_js_files)',
474       '<@(remoting_webapp_credits_html_all_js_files)',
475     ],
477     'remoting_webapp_info_files': [
478       'resources/chromoting16.webp',
479       'resources/chromoting48.webp',
480       'resources/chromoting128.webp',
481     ],
483     # All the resource files required by DesktopRemoting.
484     'remoting_webapp_resource_files': [
485       'resources/disclosure_arrow_down.webp',
486       'resources/disclosure_arrow_right.webp',
487       'resources/drag.webp',
488       'resources/host_setup_instructions.webp',
489       'resources/icon_close.webp',
490       'resources/icon_cross.webp',
491       'resources/icon_disconnect.webp',
492       'resources/icon_fullscreen.webp',
493       'resources/icon_help.webp',
494       'resources/icon_host.webp',
495       'resources/icon_maximize_restore.webp',
496       'resources/icon_minimize.webp',
497       'resources/icon_options.webp',
498       'resources/icon_pencil.webp',
499       'resources/icon_warning.webp',
500       'resources/infographic_my_computers.webp',
501       'resources/infographic_remote_assistance.webp',
502       'resources/plus.webp',
503       'resources/reload.webp',
504       'resources/tick.webp',
505       'webapp/base/html/connection_stats.css',
506       'webapp/base/html/credits.css',
507       'webapp/base/html/main.css',
508       'webapp/base/html/message_window.css',
509       'webapp/base/resources/open_sans.css',
510       'webapp/base/resources/open_sans.woff',
511       'webapp/base/resources/spinner.gif',
512       'webapp/crd/html/butter_bar.css',
513       'webapp/crd/html/crd_main.css',
514       'webapp/crd/html/toolbar.css',
515       'webapp/crd/html/menu_button.css',
516       'webapp/crd/html/window_frame.css',
517       'webapp/crd/resources/scale-to-fit.webp',
518     ],
520     'remoting_webapp_crd_files': [
521       '<@(remoting_webapp_info_files)',
522       '<@(remoting_webapp_crd_js_files)',
523       '<@(remoting_webapp_resource_files)',
524     ],
526     # Files that contain localizable strings.
527     'desktop_remoting_webapp_localizable_files': [
528       'webapp/crd/manifest.json.jinja2',
529       '<(remoting_webapp_template_background)',
530       '<(remoting_webapp_template_main)',
531       '<(remoting_webapp_template_message_window)',
532       '<(remoting_webapp_template_wcs_sandbox)',
533       '<@(remoting_webapp_template_files)',
534       '<@(remoting_webapp_crd_js_files)',
535     ],
537   },