[go: nahoru, domu]

blob: 2b795fe9b8f81991f931855c26f6902069c4a18a [file] [log] [blame]
Danila Kuzmin351a7ba2023-12-01 19:18:491# Copyright 2023 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5conditional_files = [
6 "debug/no_debug.js",
7 "test_api/no_test_api.js",
Danila Kuzminceee2532024-02-12 14:07:368 "components/oobe_vars/oobe_custom_vars.css.ts",
9 "components/oobe_vars/oobe_custom_vars_remora.css.ts",
Danila Kuzmin351a7ba2023-12-01 19:18:4910 "debug/debug.js",
11 "debug/quick_start_debugger.js",
12 "test_api/test_api.js",
13]
14
Danila Kuzminceee2532024-02-12 14:07:3615conditional_js_files = []
16foreach(f, conditional_files) {
17 # TODO(b/322301624): Refactor once all conditional files are migrated.
18 extension = get_path_info(f, "extension")
19 if (extension == "ts") {
20 conditional_js_files += [ string_replace(f, ".ts", ".js") ]
21 } else {
22 conditional_js_files += [ f ]
23 }
24}
25
Danila Kuzmin351a7ba2023-12-01 19:18:4926unconditional_existing_files = [
Danila Kuzmin8b98502c2024-02-15 13:04:3227 "cr_ui.ts",
Danila Kuzmin789439442024-02-19 11:58:2928 "display_manager.ts",
Danila Kuzmin25349bd12024-02-08 16:26:5729 "i18n_setup.ts",
Danila Kuzmin159ec282024-02-12 13:34:0530 "install_oobe_error_store.ts",
Simon Ziegltrum8df351ef2024-02-12 15:51:0531 "lazy_load_screens.ts",
Jakub Flise13b0cf2024-02-13 12:46:0932 "login_ui_tools.ts",
Jakub Flise7b16572024-02-14 12:49:3433 "multi_tap_detector.ts",
Danila Kuzmin63b73e62024-02-16 15:05:1534 "oobe.ts",
Jakub Flisab60a0722024-02-13 15:31:2335 "oobe_trace.ts",
36 "oobe_trace_start.ts",
Simon Ziegltrum1f4b03cf2024-02-08 18:49:5137 "priority_screens_common_flow.ts",
38 "priority_screens_oobe_flow.ts",
Simon Ziegltrume885a3152024-02-05 12:22:4239 "screens.ts",
Danila Kuzmin351a7ba2023-12-01 19:18:4940]
41
42unconditional_autogenerated_files = [
43 "components/behaviors/oobe_dialog_host_behavior.js",
44 "components/behaviors/oobe_focus_behavior.js",
45 "components/behaviors/oobe_i18n_behavior.js",
46 "components/behaviors/oobe_scrollable_behavior.js",
47 "components/behaviors/login_screen_behavior.js",
48 "components/behaviors/multi_step_behavior.js",
Danila Kuzmin351a7ba2023-12-01 19:18:4949 "components/common_styles/cr_card_radio_group_styles.css.js",
50 "components/common_styles/oobe_common_styles.css.js",
51 "components/common_styles/oobe_dialog_host_styles.css.js",
52 "components/common_styles/oobe_flex_layout_styles.css.js",
Danila Kuzminceee2532024-02-12 14:07:3653 "components/oobe_vars/oobe_shared_vars.css.ts",
Danila Kuzmin351a7ba2023-12-01 19:18:4954]
Danila Kuzminc213d022023-12-05 14:40:5155
Simon Ziegltrumffb056d2024-02-16 12:15:1756oobe_screens_ts_files = [
Brahim Chikhaoui803d30022023-12-29 15:50:4057 "screens/oobe/auto_enrollment_check.ts",
Simon Ziegltrum3def21f2024-01-19 10:21:5858 "screens/oobe/consumer_update.ts",
Danila Kuzmineb14f1c2023-12-14 22:14:4959 "screens/oobe/demo_preferences.ts",
Danila Kuzmin58aa3e222023-12-18 12:13:4960 "screens/oobe/demo_setup.ts",
Danila Kuzmin5630b5682023-12-19 10:56:4161 "screens/oobe/enable_debugging.ts",
Danila Kuzmin293ded9b2024-01-18 15:17:3462 "screens/oobe/enterprise_enrollment.ts",
Danila Kuzminb80f64b2024-01-16 13:24:4863 "screens/oobe/hid_detection.ts",
Jakub Flis20d230c2024-01-26 16:57:2664 "screens/oobe/oobe_network.ts",
Brahim Chikhaouif6addf42023-12-20 13:49:0465 "screens/oobe/packaged_license.ts",
Simon Ziegltrumd220890a2024-01-11 14:47:4966 "screens/oobe/update.ts",
Simon Ziegltrumffb056d2024-02-16 12:15:1767 "screens/oobe/welcome.ts",
68 "screens/oobe/welcome_dialog.ts",
Danila Kuzminc213d022023-12-05 14:40:5169]
70
Simon Ziegltrumffb056d2024-02-16 12:15:1771oobe_screens_html_files = [
72 "components/oobe_icons.html",
73 "components/oobe_illo_icons.html",
74 "components/oobe_network_icons.html",
75]
76
77foreach(f, oobe_screens_ts_files) {
78 oobe_screens_html_files += [ string_replace(f, ".ts", ".html") ]
Danila Kuzminc213d022023-12-05 14:40:5179}
80
81oobe_screens_html_wrapped_files = []
Danila Kuzmineb14f1c2023-12-14 22:14:4982foreach(f, oobe_screens_html_files) {
Simon Ziegltrumffb056d2024-02-16 12:15:1783 oobe_screens_html_wrapped_files += [ string_replace(f, ".html", ".html.ts") ]
Danila Kuzminc213d022023-12-05 14:40:5184}
85
Simon Ziegltrumffb056d2024-02-16 12:15:1786common_screens_ts_files = [
Simon Ziegltrum080ab9d2023-12-19 17:49:3587 "screens/common/adb_sideloading.ts",
Simon Ziegltrumd8011372023-12-19 13:05:1388 "screens/common/add_child.ts",
Bohdan Tyshchenko0da68b9e2024-01-12 08:30:4089 "screens/common/app_downloading.ts",
Bohdan Tyshchenko478c2fb52024-01-11 05:53:5390 "screens/common/app_launch_splash.ts",
Brahim Chikhaouie821476a2024-01-16 15:31:2491 "screens/common/assistant_optin.ts",
Simon Ziegltrum93282a52023-12-22 14:15:5692 "screens/common/autolaunch.ts",
Osama Fathy2e49f0e12023-12-19 14:27:4893 "screens/common/choobe.ts",
Osama Fathy06191e42024-01-26 14:28:3594 "screens/common/consolidated_consent.ts",
Brahim Chikhaoui5a170392024-01-15 17:36:4795 "screens/common/device_disabled.ts",
Osama Fathy0a84fff2023-12-19 16:23:2996 "screens/common/display_size.ts",
Osama Fathy75ae9df2023-12-19 20:15:1197 "screens/common/drive_pinning.ts",
Brahim Chikhaouiefdde312023-12-19 17:31:2098 "screens/common/enable_kiosk.ts",
Brahim Chikhaouiadce7b0c2024-02-07 05:53:0699 "screens/common/error_message.ts",
Brahim Chikhaoui67a518b62023-12-21 13:07:28100 "screens/common/family_link_notice.ts",
Brahim Chikhaouid46b0b92023-12-19 15:16:31101 "screens/common/gaia_info.ts",
Danila Kuzmin2cc59c12024-01-17 10:48:28102 "screens/common/gaia_signin.ts",
Brahim Chikhaoui19149042023-12-21 11:14:24103 "screens/common/gesture_navigation.ts",
Brahim Chikhaoui8f7caf192024-01-23 13:31:48104 "screens/common/guest_tos.ts",
Brahim Chikhaoui774d6fc2023-12-22 12:13:27105 "screens/common/hw_data_collection.ts",
Brahim Chikhaouic30624da2024-01-18 16:59:44106 "screens/common/install_attributes_error.ts",
Brahim Chikhaoui5cd877f2023-12-20 05:36:18107 "screens/common/local_state_error.ts",
Brahim Chikhaoui8e1d16c82024-01-09 09:56:39108 "screens/common/managed_terms_of_service.ts",
Simon Ziegltrum8de2b242023-12-21 10:22:12109 "screens/common/marketing_opt_in.ts",
Simon Ziegltrumed062702024-01-22 14:47:08110 "screens/common/multidevice_setup.ts",
Bohdan Tyshchenko6f6ae332024-02-05 16:09:02111 "screens/common/offline_ad_login.ts",
Simon Ziegltrume075b9c2024-02-08 11:34:46112 "screens/common/online_authentication_screen.ts",
Brahim Chikhaoui0e4c97792023-12-22 11:14:44113 "screens/common/oobe_reset.ts",
Brahim Chikhaoui4e2c9a92024-01-16 16:13:01114 "screens/common/os_install.ts",
Brahim Chikhaoui243cdb12023-12-22 13:08:46115 "screens/common/os_trial.ts",
Brahim Chikhaoui216e6162023-12-21 20:18:52116 "screens/common/parental_handoff.ts",
Simon Ziegltrum2a6cb402024-01-22 23:50:20117 "screens/common/quick_start.ts",
Bohdan Tyshchenko79032282024-01-17 12:14:54118 "screens/common/remote_activity_notification.ts",
Danila Kuzmin9b6e12de2023-12-06 17:18:54119
120 # Template used by the `tools/oobe/generate_screen_template.py` script.
Bohdan Tyshchenko7b0f1b02023-12-22 19:21:06121 "screens/common/placeholder.ts",
Bohdan Tyshchenkobfc46492024-01-25 15:41:29122 "screens/common/recommend_apps.ts",
Bohdan Tyshchenkoc37b9892024-01-25 09:23:41123 "screens/common/saml_confirm_password.ts",
Danila Kuzmin2d3c9a82024-02-08 13:25:52124 "screens/common/signin_fatal_error.ts",
Brahim Chikhaouiffd0d25c2023-12-20 17:23:25125 "screens/common/smart_privacy_protection.ts",
Brahim Chikhaoui1ffb35a2024-01-17 12:47:31126 "screens/common/sync_consent.ts",
Osama Fathy20d27fc12023-12-22 13:01:07127 "screens/common/theme_selection.ts",
Brahim Chikhaoui72bec9652024-01-17 14:40:10128 "screens/common/touchpad_scroll.ts",
Brahim Chikhaouic32cc512023-12-20 13:44:27129 "screens/common/tpm_error.ts",
Brahim Chikhaouidba94e3f2024-01-16 17:28:35130 "screens/common/user_allowlist_check_screen.ts",
Danila Kuzminfb0dc6722023-12-11 18:39:08131 "screens/common/user_creation.ts",
Danila Kuzmina6b19e12023-12-08 12:38:39132 "screens/common/wrong_hwid.ts",
Danila Kuzmin9b6e12de2023-12-06 17:18:54133]
134
135common_screens_html_files = []
Simon Ziegltrumffb056d2024-02-16 12:15:17136foreach(f, common_screens_ts_files) {
137 common_screens_html_files += [ string_replace(f, ".ts", ".html") ]
Danila Kuzmin9b6e12de2023-12-06 17:18:54138}
139
140common_screens_html_wrapped_files = []
Danila Kuzmina6b19e12023-12-08 12:38:39141foreach(f, common_screens_html_files) {
142 common_screens_html_wrapped_files +=
Simon Ziegltrumffb056d2024-02-16 12:15:17143 [ string_replace(f, ".html", ".html.ts") ]
Danila Kuzmin9b6e12de2023-12-06 17:18:54144}
145
Simon Ziegltrumffb056d2024-02-16 12:15:17146login_screens_ts_files = [
Simon Ziegltrumc6d54d42024-01-08 17:25:11147 "screens/login/arc_vm_data_migration.ts",
Simon Ziegltrum1ea927b2024-01-18 13:05:32148 "screens/login/checking_downloading_update.ts",
Simon Ziegltrumcd7ac662023-12-21 12:04:19149 "screens/login/encryption_migration.ts",
Simon Ziegltrumf2b33fd2024-01-01 06:37:59150 "screens/login/lacros_data_backward_migration.ts",
Simon Ziegltrum1e524f62023-12-22 11:11:10151 "screens/login/lacros_data_migration.ts",
Simon Ziegltrum71148df2024-01-02 02:04:51152 "screens/login/management_transition.ts",
Simon Ziegltrum3b1622d2024-01-08 15:31:04153 "screens/login/offline_login.ts",
Simon Ziegltrum1ea927b2024-01-18 13:05:32154 "screens/login/update_required_card.ts",
Danila Kuzmin523722b2023-12-08 16:28:29155]
156
157login_screens_html_files = []
Simon Ziegltrumffb056d2024-02-16 12:15:17158foreach(f, login_screens_ts_files) {
Simon Ziegltrum1ea927b2024-01-18 13:05:32159 login_screens_html_files += [ string_replace(f, ".ts", ".html") ]
Danila Kuzmin523722b2023-12-08 16:28:29160}
161
162login_screens_html_wrapped_files = []
163foreach(f, login_screens_html_files) {
Simon Ziegltrumffb056d2024-02-16 12:15:17164 login_screens_html_wrapped_files += [ string_replace(f, ".html", ".html.ts") ]
Danila Kuzmin523722b2023-12-08 16:28:29165}
166
Simon Ziegltrumffb056d2024-02-16 12:15:17167osauth_screens_ts_files = [
Simon Ziegltrum7002aeee2024-01-19 11:58:01168 "screens/osauth/apply_online_password.ts",
Bohdan Tyshchenko3b4affb2024-01-16 11:02:37169 "screens/osauth/cryptohome_recovery.ts",
Bohdan Tyshchenkod55b94ee2024-01-17 13:22:59170 "screens/osauth/cryptohome_recovery_setup.ts",
Brahim Chikhaoui45c1c7c2024-01-17 10:59:52171 "screens/osauth/factor_setup_success.ts",
Simon Ziegltrum324d5ab2024-01-22 14:05:33172 "screens/osauth/fingerprint_setup.ts",
Brahim Chikhaoui4671c962024-01-23 16:51:50173 "screens/osauth/gaia_password_changed.ts",
Brahim Chikhaoui03b7b6e2024-01-23 15:02:49174 "screens/osauth/local_password_setup.ts",
Brahim Chikhaoui1df28ebc2024-01-24 13:34:39175 "screens/osauth/local_data_loss_warning.ts",
Brahim Chikhaoui6873b422024-01-25 08:13:13176 "screens/osauth/enter_old_password.ts",
Simon Ziegltrum298d6f172024-01-26 11:23:25177 "screens/osauth/osauth_error.ts",
Brahim Chikhaouic9cb9732024-01-15 16:45:47178 "screens/osauth/password_selection.ts",
Bohdan Tyshchenko754ea8d2024-01-15 13:41:26179 "screens/osauth/pin_setup.ts",
Danila Kuzmin9c190f62023-12-21 18:10:40180]
181
182osauth_screens_html_files = []
Simon Ziegltrumffb056d2024-02-16 12:15:17183foreach(f, osauth_screens_ts_files) {
Simon Ziegltrum298d6f172024-01-26 11:23:25184 osauth_screens_html_files += [ string_replace(f, ".ts", ".html") ]
Danila Kuzmin9c190f62023-12-21 18:10:40185}
186
187osauth_screens_html_wrapped_files = []
188foreach(f, osauth_screens_html_files) {
189 osauth_screens_html_wrapped_files +=
Simon Ziegltrumffb056d2024-02-16 12:15:17190 [ string_replace(f, ".html", ".html.ts") ]
Danila Kuzmin9c190f62023-12-21 18:10:40191}
192
Danila Kuzmincf4a895f2024-02-09 13:11:03193dialogs_ts_files = [
194 "components/dialogs/oobe_adaptive_dialog.ts",
195 "components/dialogs/oobe_content_dialog.ts",
196 "components/dialogs/oobe_loading_dialog.ts",
197 "components/dialogs/oobe_modal_dialog.ts",
198]
199
200dialogs_html_files = []
201foreach(f, dialogs_ts_files) {
202 dialogs_html_files += [ string_replace(f, ".ts", ".html") ]
203}
204
205dialogs_html_wrapped_files = []
206foreach(f, dialogs_html_files) {
207 dialogs_html_wrapped_files += [ string_replace(f, ".html", ".html.ts") ]
208}
209
Danila Kuzminc558e2eb2023-12-13 17:18:22210buttons_ts_files = [
211 "components/buttons/oobe_back_button.ts",
212 "components/buttons/oobe_icon_button.ts",
213 "components/buttons/oobe_next_button.ts",
214 "components/buttons/oobe_text_button.ts",
215]
216
217buttons_html_files = []
218foreach(f, buttons_ts_files) {
219 buttons_html_files += [ string_replace(f, ".ts", ".html") ]
220}
221
222buttons_html_wrapped_files = []
223foreach(f, buttons_html_files) {
224 buttons_html_wrapped_files += [ string_replace(f, ".html", ".html.ts") ]
225}
226
227buttons_ts_files += [ "components/buttons/oobe_base_button.ts" ]
228
Danila Kuzminfeed8c692024-01-25 10:17:24229components_ts_files = [
Simon Ziegltrumffb056d2024-02-16 12:15:17230 "components/api_keys_notice.ts",
Danila Kuzminfeed8c692024-01-25 10:17:24231 "components/gaia_button.ts",
232 "components/gaia_dialog.ts",
Brahim Chikhaoui31cd6df2024-02-12 14:06:37233 "components/hd_iron_icon.ts",
Jakub Flis20d230c2024-01-26 16:57:26234 "components/network_select_login.ts",
Simon Ziegltrum40d1d772024-02-06 12:27:19235 "components/notification_card.ts",
Simon Ziegltrumffb056d2024-02-16 12:15:17236 "components/oobe_a11y_option.ts",
Jakub Flis9e865e602024-02-02 08:42:09237 "components/oobe_apps_list.ts",
Simon Ziegltrum4ee245ef2024-02-12 13:34:41238 "components/oobe_carousel.ts",
239 "components/oobe_cr_lottie.ts",
Jakub Flis2bebba0b2024-02-13 14:55:28240 "components/oobe_display_size_selector.ts",
Simon Ziegltrumffb056d2024-02-16 12:15:17241 "components/oobe_i18n_dropdown.ts",
Simon Ziegltrum65839d82024-02-15 11:47:27242 "components/oobe_screens_list.ts",
Simon Ziegltrum4ee245ef2024-02-12 13:34:41243 "components/oobe_slide.ts",
Jakub Flise569a192024-02-07 14:41:37244 "components/progress_list_item.ts",
Jakub Flis7ad359a2024-02-06 11:16:16245 "components/security_token_pin.ts",
Jakub Flis9e865e602024-02-02 08:42:09246 "components/throbber_notice.ts",
Simon Ziegltrum612e3bf2024-02-05 17:11:29247 "components/quick_start_pin.ts",
248 "components/quick_start_entry_point.ts",
Danila Kuzminfeed8c692024-01-25 10:17:24249]
Bohdan Tyshchenkod841eab2024-01-16 00:30:06250
251components_html_files = []
252foreach(f, components_ts_files) {
253 components_html_files += [ string_replace(f, ".ts", ".html") ]
254}
255
256components_html_wrapped_files = []
257foreach(f, components_html_files) {
258 components_html_wrapped_files += [ string_replace(f, ".html", ".html.ts") ]
259}
260
Simon Ziegltrum4ee245ef2024-02-12 13:34:41261# The following components do not have corresponding html files, we are adding
Jakub Flis35952962024-01-30 14:50:24262# them after the list of html files has been populated
Simon Ziegltrum612e3bf2024-02-05 17:11:29263components_ts_files += [
Danila Kuzmincb1f6572024-02-18 23:01:14264 "components/display_manager_types.ts",
Danila Kuzmin97ffff32024-02-06 14:52:57265 "components/keyboard_utils.ts",
266 "components/keyboard_utils_oobe.ts",
267 "components/long_touch_detector.ts",
Simon Ziegltrumffb056d2024-02-16 12:15:17268 "components/oobe_select.ts",
Danila Kuzmincb1f6572024-02-18 23:01:14269 "components/oobe_types.ts",
Danila Kuzmin97ffff32024-02-06 14:52:57270 "components/qr_code_canvas.ts",
Simon Ziegltrum65839d82024-02-15 11:47:27271 "components/web_view_helper.ts",
Jakub Flis99ef4a22024-02-07 09:23:21272 "components/web_view_loader.ts",
Simon Ziegltrum612e3bf2024-02-05 17:11:29273]
Jakub Flis35952962024-01-30 14:50:24274
Danila Kuzminc213d022023-12-05 14:40:51275unconditional_autogenerated_files +=
Simon Ziegltrumffb056d2024-02-16 12:15:17276 oobe_screens_ts_files + oobe_screens_html_wrapped_files +
277 common_screens_ts_files + common_screens_html_wrapped_files +
278 login_screens_ts_files + login_screens_html_wrapped_files +
279 osauth_screens_ts_files + osauth_screens_html_wrapped_files +
Danila Kuzmincf4a895f2024-02-09 13:11:03280 dialogs_ts_files + dialogs_html_wrapped_files + buttons_ts_files +
281 buttons_html_wrapped_files + components_ts_files +
Bohdan Tyshchenkod841eab2024-01-16 00:30:06282 components_html_wrapped_files