[Telemetry] Remove internal dependencies on BuildbotOutputFormatter
[chromium-blink-merge.git] / remoting / remoting_webapp_files.gypi
blobef4989037114afae35547c25ff86180d192c3153
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/protocol_extension_manager_unittest.js',
93       'webapp/base/js/typecheck_unittest.js',
94       'webapp/base/js/viewport_unittest.js',
95       'webapp/base/js/window_shape_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       'webapp/crd/js/mock_client_plugin.js',
112       'webapp/crd/js/mock_host_daemon_facade.js',
113       'webapp/crd/js/mock_host_list_api.js',
114       'webapp/crd/js/mock_identity.js',
115       'webapp/crd/js/mock_signal_strategy.js',
116       'webapp/js_proto/chrome_mocks.js',
117       'webapp/unittests/sinon_helpers.js',
118       'webapp/crd/js/mock_xhr.js',
119     ],
120     # Prototypes for objects that are not mocked.
121     'remoting_webapp_unittests_js_proto_files': [
122       'webapp/js_proto/chrome_cast_proto.js',
123       'webapp/js_proto/chrome_proto.js',
124       'webapp/js_proto/dom_proto.js',
125       'webapp/js_proto/remoting_proto.js',
126       'webapp/js_proto/qunit_proto.js',
127       'webapp/js_proto/sinon_proto.js',
128     ],
129     'remoting_webapp_unittests_all_js_files': [
130       '<@(remoting_webapp_unittests_js_files)',
131       '<@(remoting_webapp_unittests_js_mock_files)',
132       'webapp/unittests/qunit_callbacks.js',
133     ],
134     # All the files needed to run the unittests.
135     'remoting_webapp_unittests_all_files': [
136       'webapp/crd/html/menu_button.css',
137       '<@(remoting_webapp_unittests_all_js_files)',
138     ],
139     'remoting_webapp_unittests_template_main':
140       'webapp/crd/html/template_unittests.html',
142     #
143     # Shared webapp JavaScript file groups.
144     #
146     # Auth (Google account) JavaScript files.
147     'remoting_webapp_shared_js_auth_google_files': [
148       'webapp/base/js/auth_init.js',
149       'webapp/base/js/identity.js',
150       'webapp/base/js/oauth2.js',
151       'webapp/base/js/oauth2_api.js',
152       'webapp/base/js/oauth2_api_impl.js',
153     ],
154     # Client JavaScript files.
155     'remoting_webapp_shared_js_client_files': [
156       'webapp/base/js/activity.js',
157       'webapp/base/js/client_plugin.js',
158       'webapp/base/js/client_plugin_host_desktop_impl.js',
159       'webapp/base/js/client_plugin_impl.js',
160       'webapp/base/js/client_session.js',
161       'webapp/base/js/client_session_factory.js',
162       'webapp/base/js/clipboard.js',
163       'webapp/base/js/connected_view.js',
164       'webapp/base/js/connection_info.js',
165       'webapp/base/js/credentials_provider.js',
166       'webapp/base/js/host_desktop.js',
167       'webapp/base/js/smart_reconnector.js',
168     ],
169     # Remoting core JavaScript files.
170     'remoting_webapp_shared_js_core_files': [
171       'webapp/base/js/app_capabilities.js',
172       'webapp/base/js/application.js',
173       'webapp/base/js/base.js',
174       'webapp/base/js/ipc.js',
175       'webapp/base/js/modal_dialogs.js',
176       'webapp/base/js/platform.js',
177       'webapp/base/js/protocol_extension_manager.js',
178       'webapp/base/js/protocol_extension.js',
179       'webapp/base/js/error.js',
180       'webapp/base/js/plugin_settings.js',
181       'webapp/base/js/suspend_detector.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_dropped_dialog.js',
212       'webapp/base/js/connection_stats.js',
213       'webapp/base/js/l10n.js',
214       'webapp/base/js/ui_mode.js',
215       'webapp/base/js/viewport.js',
216       'webapp/base/js/window_shape.js',
217     ],
219     #
220     # DesktopRemoting webapp JavaScript file groups.
221     #
223     # Auth (apps v1) JavaScript files.
224     # These files aren't included directly from main.html. They are
225     # referenced from the manifest.json file (appsv1 only).
226     'remoting_webapp_js_auth_v1_files': [
227       'webapp/crd/js/cs_third_party_auth_trampoline.js',  # client to host
228       'webapp/crd/js/cs_oauth2_trampoline.js',  # Google account
229     ],
230     # Auth (client to host) JavaScript files.
231     'remoting_webapp_js_auth_client2host_files': [
232       'webapp/crd/js/third_party_host_permissions.js',
233       'webapp/crd/js/third_party_token_fetcher.js',
234     ],
235     # Cast extension handler JavaScript files.
236     'remoting_webapp_js_cast_extension_files': [
237       'webapp/crd/js/cast_extension_handler.js',
238     ],
239     # Client JavaScript files.
240     'remoting_webapp_js_client_files': [
241       'webapp/crd/js/apps_v2_migration.js',
242       'webapp/crd/js/event_handlers.js',
243       'webapp/crd/js/gcd_client.js',
244       'webapp/crd/js/video_frame_recorder.js',
245     ],
246     # Gnubby authentication JavaScript files.
247     'remoting_webapp_js_gnubby_auth_files': [
248       'webapp/crd/js/gnubby_auth_handler.js',
249     ],
250     # Files for controlling the local machine as a host.
251     # Includes both it2me and me2me files.
252     'remoting_webapp_js_host_control_files': [
253       'webapp/crd/js/host_controller.js',
254       'webapp/crd/js/host_daemon_facade.js',
255       'webapp/crd/js/host_screen.js',
256       'webapp/crd/js/host_session.js',
257       'webapp/crd/js/host_setup_dialog.js',
258       'webapp/crd/js/host_install_dialog.js',
259       'webapp/crd/js/host_installer.js',
260       'webapp/crd/js/it2me_host_facade.js',
261       'webapp/crd/js/paired_client_manager.js',
262     ],
263     # Files for displaying (in the client) info about available hosts.
264     'remoting_webapp_js_host_display_files': [
265       'webapp/crd/js/host_list.js',
266       'webapp/crd/js/host_list_api.js',
267       'webapp/crd/js/host_list_api_gcd_impl.js',
268       'webapp/crd/js/host_list_api_impl.js',
269       'webapp/crd/js/host_table_entry.js',
270       'webapp/crd/js/local_host_section.js',
271     ],
272     # The CRD-specific JavaScript files required by main.html.
273     'remoting_webapp_crd_js_ui_files': [
274       'webapp/crd/js/bump_scroller.js',
275       'webapp/crd/js/butter_bar.js',
276       'webapp/crd/js/crd_auth_dialog.js',
277       'webapp/crd/js/crd_event_handlers.js',
278       'webapp/crd/js/crd_experimental.js',
279       'webapp/crd/js/desktop_connected_view.js',
280       'webapp/crd/js/desktop_remoting.js',
281       'webapp/crd/js/desktop_remoting_activity.js',
282       'webapp/crd/js/desktop_viewport.js',
283       'webapp/crd/js/feedback.js',
284       'webapp/crd/js/fullscreen.js',
285       'webapp/crd/js/fullscreen_v1.js',
286       'webapp/crd/js/fullscreen_v2.js',
287       'webapp/crd/js/it2me_activity.js',
288       'webapp/crd/js/me2me_activity.js',
289       'webapp/crd/js/menu_button.js',
290       'webapp/crd/js/options_menu.js',
291       'webapp/crd/js/toolbar.js',
292       'webapp/crd/js/window_frame.js',
293     ],
295     #
296     # DesktopRemoting main.html generation files.
297     #
299     'remoting_webapp_template_main':
300       '<(DEPTH)/remoting/webapp/crd/html/template_main.html',
302     # The shared JavaScript files required by main.html.
303     # These files are shared with the unittest target.
304     'remoting_webapp_shared_main_html_js_files': [
305       # Include the core files first as it is required by the other files.
306       # Otherwise, Jscompile will complain.
307       '<@(remoting_webapp_shared_js_core_files)',
308       '<@(remoting_webapp_shared_js_auth_google_files)',
309       '<@(remoting_webapp_shared_js_client_files)',
310       '<@(remoting_webapp_shared_js_host_files)',
311       '<@(remoting_webapp_shared_js_logging_files)',
312       '<@(remoting_webapp_shared_js_signaling_files)',
313       '<@(remoting_webapp_shared_js_ui_files)',
314       '<@(remoting_webapp_js_auth_client2host_files)',
315       '<@(remoting_webapp_js_client_files)',
316       '<@(remoting_webapp_js_gnubby_auth_files)',
317       '<@(remoting_webapp_js_cast_extension_files)',
318       '<@(remoting_webapp_js_host_control_files)',
319       '<@(remoting_webapp_js_host_display_files)',
320     ],
322     # The JS files required by unittest.html.
323     'remoting_webapp_unittest_html_all_js_files': [
324       '<@(remoting_webapp_shared_main_html_js_files)',
325       '<@(remoting_webapp_crd_js_ui_files)',
326     ],
328     # The CRD-specific JavaScript files required by main.html.
329     'remoting_webapp_crd_main_html_all_js_files': [
330       '<@(remoting_webapp_shared_main_html_js_files)',
331       '<@(remoting_webapp_crd_js_ui_files)',
332       'webapp/crd/js/crd_main.js',
333     ],
335     # These template files are used to construct main.html.
336     'remoting_webapp_template_files': [
337       'webapp/base/html/client_plugin.html',
338       'webapp/crd/html/butter_bar.html',
339       'webapp/crd/html/dialog_auth.html',
340       'webapp/crd/html/dialog_client_connect_failed.html',
341       'webapp/crd/html/dialog_client_connecting.html',
342       'webapp/crd/html/dialog_client_host_needs_upgrade.html',
343       'webapp/crd/html/dialog_client_pin_prompt.html',
344       'webapp/crd/html/dialog_client_session_finished.html',
345       'webapp/crd/html/dialog_client_third_party_auth.html',
346       'webapp/crd/html/dialog_client_unconnected.html',
347       'webapp/crd/html/dialog_confirm_host_delete.html',
348       'webapp/crd/html/dialog_connection_history.html',
349       'webapp/crd/html/dialog_host.html',
350       'webapp/crd/html/dialog_host_install.html',
351       'webapp/crd/html/dialog_host_setup.html',
352       'webapp/crd/html/dialog_manage_pairings.html',
353       'webapp/crd/html/dialog_token_refresh_failed.html',
354       'webapp/crd/html/toolbar.html',
355       'webapp/crd/html/ui_header.html',
356       'webapp/crd/html/ui_it2me.html',
357       'webapp/crd/html/ui_me2me.html',
358       'webapp/crd/html/window_frame.html',
359     ],
361     #
362     # Webapp background.html generation files.
363     #
365     'remoting_webapp_template_background':
366       '<(DEPTH)/remoting/webapp/crd/html/template_background.html',
368     # These JS files are specific to the background page and are not part of
369     # the main JS files.
370     'remoting_webapp_background_html_js_files': [
371       'webapp/base/js/message_window_helper.js',
372       'webapp/base/js/message_window_manager.js',
373       'webapp/crd/js/activation_handler.js',
374       'webapp/crd/js/app_launcher.js',
375       'webapp/crd/js/background.js',
376     ],
378     # All the JavaScript files required by background.html.
379     'remoting_webapp_background_html_all_js_files': [
380       '<@(remoting_webapp_background_html_js_files)',
381       'webapp/base/js/base.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/crd_main.css',
495       'webapp/crd/html/toolbar.css',
496       'webapp/crd/html/menu_button.css',
497       'webapp/crd/html/window_frame.css',
498       'webapp/crd/resources/scale-to-fit.webp',
499     ],
501     'remoting_webapp_crd_files': [
502       '<@(remoting_webapp_info_files)',
503       '<@(remoting_webapp_crd_js_files)',
504       '<@(remoting_webapp_resource_files)',
505     ],
507     # Files that contain localizable strings.
508     'desktop_remoting_webapp_localizable_files': [
509       'webapp/crd/manifest.json.jinja2',
510       '<(remoting_webapp_template_background)',
511       '<(remoting_webapp_template_main)',
512       '<(remoting_webapp_template_message_window)',
513       '<(remoting_webapp_template_wcs_sandbox)',
514       '<@(remoting_webapp_template_files)',
515       '<@(remoting_webapp_crd_js_files)',
516     ],
518   },