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