1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
ash / webui / shortcut_customization_ui / resources / BUILD.gn [blame]
# 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",
]
ts_path_mappings =
[ "chrome://resources/mojo/mojo/public/js/mojo_bindings_lite.js|" +
rebase_path("${root_gen_dir}/mojo/public/js/mojo_bindings_lite.js",
target_gen_dir) ]
webui_context_type = "trusted"
ts_extra_deps = [
"//ash/webui/common/resources:copy_checked_in_dts_files",
"//mojo/public/js:bindings_lite",
]
grit_output_dir = "$root_gen_dir/ash/webui"
}