# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ui/webui/resources/tools/build_webui.gni")
assert(is_chromeos_ash)
build_webui("build") {
grd_prefix = "ash_shortcut_customization_app"
static_files = [
"app_icon_192.png",
"index.html",
]
web_component_files = [
"js/accelerator_edit_dialog.ts",
"js/accelerator_edit_view.ts",
"js/accelerator_row.ts",
"js/accelerator_subsection.ts",
"js/accelerator_view.ts",
"js/bottom_nav_content.ts",
"js/search/search_box.ts",
"js/search/search_result_row.ts",
"js/shortcut_customization_app.ts",
"js/shortcuts_page.ts",
"js/text_accelerator.ts",
]
non_web_component_files = [
"js/accelerator_lookup_manager.ts",
"js/fake_data.ts",
"js/fake_shortcut_provider.ts",
"js/mojo_interface_provider.ts",
"js/router.ts",
"js/search/fake_shortcut_search_handler.ts",
"js/search/search_result_bolding.ts",
"js/search/shortcut_search_handler.ts",
"js/shortcut_input_mojo_interface_provider.ts",
"js/shortcut_types.ts",
"js/shortcut_utils.ts",
]
mojo_files_deps = [
"//ash/public/mojom:accelerator_actions_ts__generator",
"//ash/public/mojom:accelerator_configuration_ts__generator",
"//ash/public/mojom:accelerator_info_ts__generator",
"//ash/public/mojom:accelerator_keys_ts__generator",
"//ash/public/mojom:input_device_settings_ts__generator",
"//ash/webui/common/mojom:shortcut_input_provider_ts__generator",
"//ash/webui/shortcut_customization_ui/backend/search:mojo_bindings_ts__generator",
"//ash/webui/shortcut_customization_ui/mojom:mojom_ts__generator",
"//ui/events/ash/mojom:mojom_ts__generator",
]
mojo_files = [
"$root_gen_dir/ash/public/mojom/accelerator_actions.mojom-webui.ts",
"$root_gen_dir/ash/public/mojom/accelerator_configuration.mojom-webui.ts",
"$root_gen_dir/ash/public/mojom/accelerator_info.mojom-webui.ts",
"$root_gen_dir/ash/public/mojom/accelerator_keys.mojom-webui.ts",
"$root_gen_dir/ash/public/mojom/input_device_settings.mojom-webui.ts",
"$root_gen_dir/ash/webui/common/mojom/shortcut_input_provider.mojom-webui.ts",
"$root_gen_dir/ash/webui/shortcut_customization_ui/backend/search/search.mojom-webui.ts",
"$root_gen_dir/ash/webui/shortcut_customization_ui/mojom/shortcut_customization.mojom-webui.ts",
"$root_gen_dir/ui/events/ash/mojom/extended_fkeys_modifier.mojom-webui.ts",
"$root_gen_dir/ui/events/ash/mojom/meta_key.mojom-webui.ts",
"$root_gen_dir/ui/events/ash/mojom/modifier_key.mojom-webui.ts",
"$root_gen_dir/ui/events/ash/mojom/simulate_right_click_modifier.mojom-webui.ts",
"$root_gen_dir/ui/events/ash/mojom/six_pack_shortcut_modifier.mojom-webui.ts",
]
mojo_base_path = "mojom-webui"
icons_html_files = [ "common/icons.html" ]
css_files = [ "css/shortcut_customization_shared.css" ]
ts_composite = true
ts_deps = [
"//ash/webui/common/resources:build_ts",
"//ash/webui/common/resources/cr_elements:build_ts",
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_components/color_change_listener:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
ts_extra_deps = [ "//ash/webui/common/resources:copy_checked_in_dts_files" ]
grit_output_dir = "$root_gen_dir/ash/webui"
}