Include all dupe types (event when value is zero) in scan stats.
[chromium-blink-merge.git] / remoting / webapp / files.gni
blob7b3a7166b0aeb690213af3dfee0fea4168e34504
1 # Copyright 2015 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/remoting_webapp_files.gypi
14 # and remoting/app_remoting_webapp_files.gypi.
16 # Jscompile proto files.
17 # These provide type information for jscompile.
18 remoting_webapp_js_proto_files = [
19   "js_proto/chrome_proto.js",
20   "js_proto/chrome_cast_proto.js",
21   "js_proto/dom_proto.js",
22   "js_proto/remoting_proto.js",
26 # Webapp browsertest JavaScript files.
29 # Browser test files.
30 remoting_webapp_browsertest_js_files = [
31   "browser_test/browser_test.js",
32   "browser_test/bump_scroll_browser_test.js",
33   "browser_test/cancel_pin_browser_test.js",
34   "browser_test/invalid_pin_browser_test.js",
35   "browser_test/it2me_browser_test.js",
36   "browser_test/me2me_browser_test.js",
37   "browser_test/scrollbar_browser_test.js",
38   "browser_test/timeout_waiter.js",
39   "browser_test/unauthenticated_browser_test.js",
40   "browser_test/update_pin_browser_test.js",
43 # Browser test files.
44 remoting_webapp_browsertest_js_mock_files = [
45   "crd/js/mock_client_plugin.js",
46   "crd/js/mock_host_list_api.js",
47   "crd/js/mock_identity.js",
48   "crd/js/mock_oauth2_api.js",
49   "crd/js/mock_session_connector.js",
50   "crd/js/mock_signal_strategy.js",
52 remoting_webapp_browsertest_js_proto_files = [
53   "js_proto/sinon_proto.js",
54   "js_proto/test_proto.js",
55   "<@(remoting_webapp_js_proto_files)",
57 remoting_webapp_browsertest_all_js_files = [
58   "<@(remoting_webapp_browsertest_js_files)",
59   "<@(remoting_webapp_browsertest_js_mock_files)",
63 # Webapp unittest JavaScript files.
66 # These product files are excluded from our JavaScript unittest
67 remoting_webapp_unittests_exclude_js_files = [
68   # background.js is where the onLoad handler is defined, which
69   # makes it the entry point of the background page.
70   "crd/js/background.js",
73 # The unit test cases for the webapp
74 remoting_webapp_unittests_js_files = [
75   # TODO(jrw): Move spy_promise to base.
76   "unittests/spy_promise.js",
77   "unittests/spy_promise_unittest.js",
78   "base/js/base_unittest.js",
79   "base/js/base_event_hook_unittest.js",
80   "base/js/base_inherits_unittest.js",
81   "base/js/client_session_unittest.js",
82   "base/js/dns_blackhole_checker_unittest.js",
83   "base/js/error_unittest.js",
84   "base/js/fallback_signal_strategy_unittest.js",
85   "base/js/identity_unittest.js",
86   "base/js/ipc_unittest.js",
87   "base/js/l10n_unittest.js",
88   "base/js/protocol_extension_manager_unittest.js",
89   "base/js/typecheck_unittest.js",
90   "base/js/viewport_unittest.js",
91   "base/js/window_shape_unittest.js",
92   "base/js/xhr_unittest.js",
93   "base/js/xmpp_connection_unittest.js",
94   "base/js/xmpp_login_handler_unittest.js",
95   "base/js/xmpp_stream_parser_unittest.js",
96   "crd/js/apps_v2_migration_unittest.js",
97   "crd/js/gcd_client_unittest.js",
98   "crd/js/gcd_client_with_mock_xhr_unittest.js",
99   "crd/js/host_controller_unittest.js",
100   "crd/js/host_daemon_facade_unittest.js",
101   "crd/js/host_table_entry_unittest.js",
102   "crd/js/menu_button_unittest.js",
103   "crd/js/mock_xhr_unittest.js",
105 remoting_webapp_unittests_js_mock_files = [
106   "crd/js/mock_host_daemon_facade.js",
107   "crd/js/mock_signal_strategy.js",
108   "js_proto/chrome_mocks.js",
109   "unittests/sinon_helpers.js",
110   "crd/js/mock_xhr.js",
113 # Prototypes for objects that are not mocked.
114 remoting_webapp_unittests_js_proto_files = [
115   "js_proto/chrome_cast_proto.js",
116   "js_proto/chrome_proto.js",
117   "js_proto/dom_proto.js",
118   "js_proto/remoting_proto.js",
119   "js_proto/qunit_proto.js",
120   "js_proto/sinon_proto.js",
122 remoting_webapp_unittests_all_js_files = [
123   "<@(remoting_webapp_unittests_js_files)",
124   "<@(remoting_webapp_unittests_js_mock_files)",
125   "unittests/qunit_callbacks.js",
128 # All the files needed to run the unittests.
129 remoting_webapp_unittests_all_files = [
130   "crd/html/menu_button.css",
131   "<@(remoting_webapp_unittests_all_js_files)",
133 remoting_webapp_unittests_template_main = "crd/html/template_unittests.html"
136 # Shared webapp JavaScript file groups.
139 # Auth (Google account) JavaScript files.
140 remoting_webapp_shared_js_auth_google_files = [
141   "base/js/auth_init.js",
142   "base/js/identity.js",
143   "base/js/oauth2.js",
144   "base/js/oauth2_api.js",
145   "base/js/oauth2_api_impl.js",
148 # Client JavaScript files.
149 remoting_webapp_shared_js_client_files = [
150   "base/js/activity.js",
151   "base/js/client_plugin.js",
152   "base/js/client_plugin_host_desktop_impl.js",
153   "base/js/client_plugin_impl.js",
154   "base/js/client_session.js",
155   "base/js/client_session_factory.js",
156   "base/js/clipboard.js",
157   "base/js/connected_view.js",
158   "base/js/connection_info.js",
159   "base/js/credentials_provider.js",
160   "base/js/host_desktop.js",
161   "base/js/smart_reconnector.js",
164 # Remoting core JavaScript files.
165 remoting_webapp_shared_js_core_files = [
166   "base/js/app_capabilities.js",
167   "base/js/application.js",
168   "base/js/base.js",
169   "base/js/ipc.js",
170   "base/js/modal_dialogs.js",
171   "base/js/platform.js",
172   "base/js/protocol_extension_manager.js",
173   "base/js/protocol_extension.js",
174   "base/js/error.js",
175   "base/js/plugin_settings.js",
176   "base/js/suspend_detector.js",
177   "base/js/typecheck.js",
178   "base/js/xhr.js",
181 # Host JavaScript files.
182 remoting_webapp_shared_js_host_files = [
183   "base/js/host.js",
184   "base/js/host_settings.js",
187 # Logging and stats JavaScript files.
188 remoting_webapp_shared_js_logging_files = [
189   "base/js/format_iq.js",
190   "base/js/log_to_server.js",
191   "base/js/server_log_entry.js",
192   "base/js/stats_accumulator.js",
195 # Remoting signaling files.
196 remoting_webapp_shared_js_signaling_files = [
197   "base/js/dns_blackhole_checker.js",
198   "base/js/fallback_signal_strategy.js",
199   "base/js/signal_strategy.js",
200   "base/js/tcp_socket.js",
201   "base/js/wcs_adapter.js",
202   "base/js/wcs_sandbox_container.js",
203   "base/js/xmpp_connection.js",
204   "base/js/xmpp_login_handler.js",
205   "base/js/xmpp_stream_parser.js",
208 # UI JavaScript files.
209 remoting_webapp_shared_js_ui_files = [
210   "base/js/connection_dropped_dialog.js",
211   "base/js/connection_stats.js",
212   "base/js/l10n.js",
213   "base/js/ui_mode.js",
214   "base/js/viewport.js",
215   "base/js/window_shape.js",
219 # DesktopRemoting webapp JavaScript file groups.
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   "crd/js/cs_third_party_auth_trampoline.js",  # client to host
227   "crd/js/cs_oauth2_trampoline.js",  # Google account
230 # Auth (client to host) JavaScript files.
231 remoting_webapp_js_auth_client2host_files = [
232   "crd/js/third_party_host_permissions.js",
233   "crd/js/third_party_token_fetcher.js",
236 # Cast extension handler JavaScript files.
237 remoting_webapp_js_cast_extension_files = [ "crd/js/cast_extension_handler.js" ]
239 # Client JavaScript files.
240 remoting_webapp_js_client_files = [
241   "crd/js/apps_v2_migration.js",
242   "crd/js/event_handlers.js",
243   "crd/js/gcd_client.js",
244   "crd/js/video_frame_recorder.js",
247 # Gnubby authentication JavaScript files.
248 remoting_webapp_js_gnubby_auth_files = [ "crd/js/gnubby_auth_handler.js" ]
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   "crd/js/host_controller.js",
254   "crd/js/host_daemon_facade.js",
255   "crd/js/host_screen.js",
256   "crd/js/host_session.js",
257   "crd/js/host_setup_dialog.js",
258   "crd/js/host_install_dialog.js",
259   "crd/js/host_installer.js",
260   "crd/js/it2me_host_facade.js",
261   "crd/js/paired_client_manager.js",
264 # Files for displaying (in the client) info about available hosts.
265 remoting_webapp_js_host_display_files = [
266   "crd/js/host_list.js",
267   "crd/js/host_list_api.js",
268   "crd/js/host_list_api_gcd_impl.js",
269   "crd/js/host_list_api_impl.js",
270   "crd/js/host_table_entry.js",
271   "crd/js/local_host_section.js",
274 # The CRD-specific JavaScript files required by main.html.
275 remoting_webapp_crd_js_ui_files = [
276   "crd/js/bump_scroller.js",
277   "crd/js/butter_bar.js",
278   "crd/js/crd_auth_dialog.js",
279   "crd/js/crd_event_handlers.js",
280   "crd/js/crd_experimental.js",
281   "crd/js/desktop_connected_view.js",
282   "crd/js/desktop_remoting.js",
283   "crd/js/desktop_remoting_activity.js",
284   "crd/js/desktop_viewport.js",
285   "crd/js/feedback.js",
286   "crd/js/fullscreen.js",
287   "crd/js/fullscreen_v1.js",
288   "crd/js/fullscreen_v2.js",
289   "crd/js/it2me_activity.js",
290   "crd/js/me2me_activity.js",
291   "crd/js/menu_button.js",
292   "crd/js/options_menu.js",
293   "crd/js/toolbar.js",
294   "crd/js/window_frame.js",
298 # DesktopRemoting main.html generation files.
301 remoting_webapp_template_main = "crd/html/template_main.html"
303 # The shared JavaScript files required by main.html.
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_ui_files +
313     remoting_webapp_shared_js_signaling_files +
314     remoting_webapp_js_auth_client2host_files +
315     remoting_webapp_js_client_files + 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
320 # Uncomment this line to include browser test files in the web app
321 # to expedite debugging or local development.
322 #+ remoting_webapp_browsertest_all_js_files
324 # The CRD-specific JavaScript files required by main.html.
325 remoting_webapp_crd_main_html_all_js_files =
326     remoting_webapp_shared_main_html_js_files +
327     remoting_webapp_crd_js_ui_files + [ "crd/js/crd_main.js" ]
329 # These template files are used to construct main.html.
330 remoting_webapp_template_files = [
331   "base/html/client_plugin.html",
332   "crd/html/butter_bar.html",
333   "crd/html/dialog_auth.html",
334   "crd/html/dialog_client_connect_failed.html",
335   "crd/html/dialog_client_connecting.html",
336   "crd/html/dialog_client_host_needs_upgrade.html",
337   "crd/html/dialog_client_pin_prompt.html",
338   "crd/html/dialog_client_session_finished.html",
339   "crd/html/dialog_client_third_party_auth.html",
340   "crd/html/dialog_client_unconnected.html",
341   "crd/html/dialog_confirm_host_delete.html",
342   "crd/html/dialog_connection_history.html",
343   "crd/html/dialog_host.html",
344   "crd/html/dialog_host_install.html",
345   "crd/html/dialog_host_setup.html",
346   "crd/html/dialog_manage_pairings.html",
347   "crd/html/dialog_token_refresh_failed.html",
348   "crd/html/toolbar.html",
349   "crd/html/ui_header.html",
350   "crd/html/ui_it2me.html",
351   "crd/html/ui_me2me.html",
352   "crd/html/window_frame.html",
356 # DesktopRemoting background.html generation files.
359 remoting_webapp_template_background = "crd/html/template_background.html"
361 # These JS files are specific to the background page and are not part of
362 # the main JS files.
363 remoting_webapp_background_html_js_files = [
364   "base/js/message_window_helper.js",
365   "base/js/message_window_manager.js",
366   "crd/js/activation_handler.js",
367   "crd/js/app_launcher.js",
368   "crd/js/background.js",
371 # All the JavaScript files required by background.html.
372 remoting_webapp_background_html_all_js_files =
373     remoting_webapp_background_html_js_files
374 remoting_webapp_background_html_all_js_files += [
375   "base/js/base.js",
376   "base/js/error.js",
377   "base/js/identity.js",
378   "base/js/ipc.js",
379   "base/js/l10n.js",
380   "base/js/oauth2.js",
381   "base/js/oauth2_api.js",
382   "base/js/oauth2_api_impl.js",
383   "base/js/plugin_settings.js",
384   "base/js/typecheck.js",
385   "base/js/xhr.js",
386   "crd/js/host_installer.js",
387   "crd/js/host_session.js",
388   "crd/js/it2me_host_facade.js",
392 # DesktopRemoting wcs_sandbox.html generation files.
395 remoting_webapp_template_wcs_sandbox = "base/html/template_wcs_sandbox.html"
397 # These JS files are specific to the WCS sandbox page and are not part of
398 # the main JS files.
399 remoting_webapp_wcs_sandbox_html_js_files = [
400   "crd/js/wcs.js",
401   "crd/js/wcs_loader.js",
402   "crd/js/wcs_sandbox_content.js",
403   "crd/js/xhr_proxy.js",
406 # All the JavaScript files required by wcs_sandbox.html.
407 remoting_webapp_wcs_sandbox_html_all_js_files =
408     remoting_webapp_wcs_sandbox_html_js_files
409 remoting_webapp_wcs_sandbox_html_all_js_files += [
410   "base/js/error.js",
411   "base/js/plugin_settings.js",
415 # DesktopRemoting message_window.html generation files.
418 remoting_webapp_template_message_window =
419     "base/html/template_message_window.html"
421 # These JS files are specific to the message window page and are not part of
422 # the main JS files.
423 remoting_webapp_message_window_html_js_files = [ "base/js/message_window.js" ]
425 # All the JavaScript files required by message_window.html.
426 remoting_webapp_message_window_html_all_js_files =
427     remoting_webapp_message_window_html_js_files + [ "base/js/base.js" ]
430 # DesktopRemoting webapp JS and resource files.
433 # All the JavaScript files that are shared by webapps.
434 remoting_webapp_shared_js_files = remoting_webapp_shared_main_html_js_files +
435                                   remoting_webapp_background_html_js_files +
436                                   remoting_webapp_message_window_html_js_files +
437                                   remoting_webapp_wcs_sandbox_html_js_files +
438                                   # JS files referenced in manifest.json.
439                                   remoting_webapp_js_auth_v1_files
441 # All the JavaScript files required by DesktopRemoting.
442 remoting_webapp_crd_js_files =
443     remoting_webapp_shared_js_files + remoting_webapp_crd_main_html_all_js_files
445 remoting_webapp_info_files = [
446   "../resources/chromoting16.webp",
447   "../resources/chromoting48.webp",
448   "../resources/chromoting128.webp",
451 # All the resource files required by DesktopRemoting.
452 remoting_webapp_resource_files = [
453   "../resources/disclosure_arrow_down.webp",
454   "../resources/disclosure_arrow_right.webp",
455   "../resources/drag.webp",
456   "../resources/host_setup_instructions.webp",
457   "../resources/icon_close.webp",
458   "../resources/icon_cross.webp",
459   "../resources/icon_disconnect.webp",
460   "../resources/icon_fullscreen.webp",
461   "../resources/icon_help.webp",
462   "../resources/icon_host.webp",
463   "../resources/icon_maximize_restore.webp",
464   "../resources/icon_minimize.webp",
465   "../resources/icon_options.webp",
466   "../resources/icon_pencil.webp",
467   "../resources/icon_warning.webp",
468   "../resources/infographic_my_computers.webp",
469   "../resources/infographic_remote_assistance.webp",
470   "../resources/plus.webp",
471   "../resources/reload.webp",
472   "../resources/tick.webp",
473   "base/html/connection_stats.css",
474   "base/html/main.css",
475   "base/html/message_window.css",
476   "base/resources/open_sans.css",
477   "base/resources/open_sans.woff",
478   "base/resources/spinner.gif",
479   "crd/html/butter_bar.css",
480   "crd/html/crd_main.css",
481   "crd/html/toolbar.css",
482   "crd/html/menu_button.css",
483   "crd/html/window_frame.css",
484   "crd/resources/scale-to-fit.webp",
487 remoting_webapp_crd_files =
488     remoting_webapp_info_files + remoting_webapp_crd_js_files +
489     remoting_webapp_resource_files
491 # Files that contain localizable strings.
492 desktop_remoting_webapp_localizable_files = [
493   "webapp/crd/manifest.json.jinja2",
494   "<(remoting_webapp_template_background)",
495   "<(remoting_webapp_template_main)",
496   "<(remoting_webapp_template_message_window)",
497   "<(remoting_webapp_template_wcs_sandbox)",
498   "<@(remoting_webapp_template_files)",
499   "<@(remoting_webapp_crd_js_files)",
503 # AppRemoting Files
506 ar_shared_resource_files = [
507                              "app_remoting/html/ar_dialog.css",
508                              "app_remoting/html/ar_main.css",
509                              "app_remoting/html/feedback_consent.css",
510                              "app_remoting/html/loading_window.css",
511                              "app_remoting/html/context_menu.css",
512                              "../resources/drag.webp",
513                            ] + remoting_webapp_resource_files
516 # AppRemoting main.html generation files.
519 # These template files are used to construct the webapp html files.
520 ar_main_template = "app_remoting/html/template_lg.html"
522 ar_main_template_files = [
523   "base/html/client_plugin.html",
524   "base/html/connection_dropped_dialog.html",
525   "app_remoting/html/context_menu.html",
526   "app_remoting/html/idle_dialog.html",
529 ar_main_js_files = [
530                      "app_remoting/js/application_context_menu.js",
531                      "app_remoting/js/app_connected_view.js",
532                      "app_remoting/js/app_remoting.js",
533                      "app_remoting/js/app_remoting_activity.js",
534                      "app_remoting/js/ar_auth_dialog.js",
535                      "app_remoting/js/ar_main.js",
536                      "app_remoting/js/context_menu_adapter.js",
537                      "app_remoting/js/context_menu_chrome.js",
538                      "app_remoting/js/context_menu_dom.js",
539                      "app_remoting/js/drag_and_drop.js",
540                      "app_remoting/js/idle_detector.js",
541                      "app_remoting/js/keyboard_layouts_menu.js",
542                      "app_remoting/js/loading_window.js",
543                      "app_remoting/js/submenu_manager.js",
544                      "app_remoting/js/window_activation_menu.js",
545                      "base/js/application.js",
546                      "base/js/base.js",
547                      "base/js/message_window_helper.js",
548                      "base/js/message_window_manager.js",
549                    ] + remoting_webapp_shared_js_auth_google_files +
550                    remoting_webapp_shared_js_client_files +
551                    remoting_webapp_shared_js_core_files +
552                    remoting_webapp_shared_js_host_files +
553                    remoting_webapp_shared_js_logging_files +
554                    remoting_webapp_shared_js_signaling_files +
555                    remoting_webapp_shared_js_ui_files
558 # AppRemoting feedback_consent.html generation files.
561 ar_feedback_consent_template =
562     "app_remoting/html/template_feedback_consent.html"
564 # These JS files are specific to the feedback consent page and are not part
565 # of the main JS files.
566 ar_feedback_consent_html_js_files = [ "app_remoting/js/feedback_consent.js" ]
568 # All the JavaScript files required by feedback_consent.html.
569 ar_feedback_consent_html_all_js_files = [
570   "app_remoting/js/feedback_consent.js",
571   "base/js/base.js",
572   "base/js/error.js",
573   "base/js/identity.js",
574   "base/js/oauth2_api.js",
575   "base/js/oauth2_api_impl.js",
576   "base/js/plugin_settings.js",
577   "base/js/l10n.js",
578   "base/js/xhr.js",
582 # AppRemoting loading_window.html generation files.
585 # Variables for loading_window.html. Note that the JS files are the same as
586 # for message_window.html, and are not duplicated here.
587 ar_loading_window_template = "app_remoting/html/template_loading_window.html"
590 # AppRemoting background JS files.
591 # These files are referenced from the manifest
594 ar_background_js_files = [
595   "app_remoting/js/ar_background.js",
596   "base/js/platform.js",
599 ar_all_js_files =
600     ar_main_js_files + ar_feedback_consent_html_js_files +
601     remoting_webapp_message_window_html_js_files +
602     remoting_webapp_wcs_sandbox_html_js_files + ar_background_js_files
604 # Files that contain localizable strings.
605 app_remoting_webapp_localizable_files =
606     [
607       ar_main_template,
608       ar_feedback_consent_template,
609       ar_loading_window_template,
610       remoting_webapp_template_message_window,
611       remoting_webapp_template_wcs_sandbox,
612     ] + ar_main_template_files + ar_all_js_files