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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chrome/common/features.gni")
import("//ui/webui/resources/tools/build_webui.gni")
import("//ui/webui/resources/tools/generate_grd.gni")
import("//ui/webui/webui_features.gni")
assert(is_linux || is_chromeos || is_win || is_mac)
build_webui("build") {
grd_prefix = "tab_search"
static_files = [
"alert_indicators/tab_audio_muting_rounded.svg",
"alert_indicators/tab_audio_rounded.svg",
"alert_indicators/tab_media_recording.svg",
"split_new_tab_page.html",
"split_view/images/empty_dark.svg",
"split_view/images/empty.svg",
"tab_search.html",
]
icons_html_files = [ "icons.html" ]
ts_files = [
"app.html.ts",
"app.ts",
"auto_tab_groups/auto_tab_groups_failure.html.ts",
"auto_tab_groups/auto_tab_groups_failure.ts",
"auto_tab_groups/auto_tab_groups_group.html.ts",
"auto_tab_groups/auto_tab_groups_group.ts",
"auto_tab_groups/auto_tab_groups_in_progress.html.ts",
"auto_tab_groups/auto_tab_groups_in_progress.ts",
"auto_tab_groups/auto_tab_groups_new_badge.html.ts",
"auto_tab_groups/auto_tab_groups_new_badge.ts",
"auto_tab_groups/auto_tab_groups_not_started.html.ts",
"auto_tab_groups/auto_tab_groups_not_started.ts",
"auto_tab_groups/auto_tab_groups_not_started_image.html.ts",
"auto_tab_groups/auto_tab_groups_not_started_image.ts",
"auto_tab_groups/auto_tab_groups_page.html.ts",
"auto_tab_groups/auto_tab_groups_page.ts",
"auto_tab_groups/auto_tab_groups_results.html.ts",
"auto_tab_groups/auto_tab_groups_results.ts",
"auto_tab_groups/auto_tab_groups_results_actions.html.ts",
"auto_tab_groups/auto_tab_groups_results_actions.ts",
"declutter/declutter_page.html.ts",
"declutter/declutter_page.ts",
"lazy_list.ts",
"search.ts",
"selectable_lazy_list.ts",
"split_new_tab_page.ts",
"split_view/app.html.ts",
"split_view/app.ts",
"tab_data.ts",
"tab_group_color_helper.ts",
"tab_organization_selector.html.ts",
"tab_organization_selector.ts",
"tab_organization_selector_button.html.ts",
"tab_organization_selector_button.ts",
"tab_search.ts",
"tab_search_api_proxy.ts",
"tab_search_group_item.html.ts",
"tab_search_group_item.ts",
"tab_search_item.html.ts",
"tab_search_item.ts",
"tab_search_page.html.ts",
"tab_search_page.ts",
"tab_search_sync_browser_proxy.ts",
"tab_search_utils.ts",
"title_item.ts",
]
css_files = [
"app.css",
"auto_tab_groups/auto_tab_groups_failure.css",
"auto_tab_groups/auto_tab_groups_group.css",
"auto_tab_groups/auto_tab_groups_in_progress.css",
"auto_tab_groups/auto_tab_groups_new_badge.css",
"auto_tab_groups/auto_tab_groups_not_started.css",
"auto_tab_groups/auto_tab_groups_not_started_image.css",
"auto_tab_groups/auto_tab_groups_page.css",
"auto_tab_groups/auto_tab_groups_results.css",
"auto_tab_groups/auto_tab_groups_results_actions.css",
"auto_tab_groups/auto_tab_groups_shared_style.css",
"declutter/declutter_page.css",
"lazy_list.css",
"selectable_lazy_list.css",
"split_view/app.css",
"tab_group_shared_vars.css",
"tab_organization_selector.css",
"tab_organization_selector_button.css",
"tab_search_group_item.css",
"tab_search_item.css",
"tab_search_page.css",
]
mojo_files_deps = [
"//chrome/browser/ui/webui/tab_search:mojo_bindings_ts__generator",
"//chrome/browser/ui/webui/tabs:mojo_bindings_ts__generator",
"//components/tab_groups/public/mojom:mojo_bindings_ts__generator",
]
mojo_files = [
"$root_gen_dir/chrome/browser/ui/webui/tab_search/tab_search.mojom-webui.ts",
"$root_gen_dir/chrome/browser/ui/webui/tabs/tabs.mojom-webui.ts",
"$root_gen_dir/components/tab_groups/public/mojom/tab_group_types.mojom-webui.ts",
]
ts_composite = true
ts_definitions = [
"//tools/typescript/definitions/metrics_private.d.ts",
"//tools/typescript/definitions/pending.d.ts",
]
ts_deps = [
"//third_party/lit/v3_0:build_ts",
"//ui/webui/resources/cr_components/color_change_listener:build_ts",
"//ui/webui/resources/cr_components/localized_link:build_ts",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
optimize = optimize_webui
if (optimize) {
optimize_webui_host = "tab-search.top-chrome"
optimize_webui_in_files = [
"split_new_tab_page.js",
"tab_search.js",
]
}
}
|