blob: 99b66be0c096bd932d1d46446fba5409b0789aae [file] [log] [blame]
# Copyright 2025 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_android)
build_webui("build") {
grd_prefix = "webui_browser"
static_files = [ "webui_browser.html" ]
ts_files = [
"app.html.ts",
"app.ts",
"bookmark_bar.ts",
"bookmark_bar_controller.ts",
"bookmark_element.html.ts",
"bookmark_element.ts",
"browser_proxy.ts",
"content_region.ts",
"icons.html.ts",
"side_panel.html.ts",
"side_panel.ts",
"tab_element.ts",
"tab_element.html.ts",
"tab_strip.ts",
"tab_strip.html.ts",
"tab_strip_controller.ts",
"webui_browser.ts",
"webview.ts",
]
css_files = [
"app.css",
"bookmark_element.css",
"content_region.css",
"side_panel.css",
"tab_element.css",
"tab_strip.css",
"webview.css",
]
mojo_files = [
# TODO(crbug.com/439641430): fix mojo ts bindings to account for cross
# reference import issue.
"$root_gen_dir/chrome/browser/ui/tabs/tab_strip_api/node_id_converter.ts",
"$root_gen_dir/chrome/browser/ui/tabs/tab_strip_api/tab_strip_api_types.mojom-converters.ts",
"$root_gen_dir/chrome/browser/ui/tabs/tab_strip_api/tab_strip_api_types.mojom-webui.ts",
"$root_gen_dir/chrome/browser/ui/webui_browser/bookmark_bar.mojom-webui.ts",
"$root_gen_dir/chrome/browser/ui/webui_browser/browser.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",
]
mojo_files_deps = [
"//chrome/browser/ui/tabs/tab_strip_api:mojom_ts__copy_converters",
"//chrome/browser/ui/tabs/tab_strip_api:mojom_ts__generator",
"//chrome/browser/ui/webui/tabs:mojo_bindings_ts__generator",
"//chrome/browser/ui/webui_browser:browser_mojo_bindings_ts__generator",
"//components/tab_groups/public/mojom:mojo_bindings_ts__generator",
]
webui_context_type = "trusted"
ts_definitions = [ "chrome_browser.d.ts" ]
ts_deps = [
"//chrome/browser/resources/tab_strip_api:build_ts",
"//third_party/lit/v3_0:build_ts",
"//ui/webui/resources/cr_components/searchbox:build_ts",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
ts_path_mappings =
[ "/tab_strip_api/*|" + rebase_path(
"$root_gen_dir/chrome/browser/resources/tab_strip_api/tsc/*",
target_gen_dir) ]
}