# Copyright 2023 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 = "side_panel_reading_list"
static_files = [
"reading_list.html",
"images/read_later_empty_dark.svg",
"images/read_later_empty.svg",
]
non_web_component_files = [
"reading_list_api_proxy.ts",
"reading_list_app.html.ts",
"reading_list_app.ts",
"reading_list_item.html.ts",
"reading_list_item.ts",
]
css_files = [
"reading_list_app.css",
"reading_list_item.css",
]
icons_html_files = [ "icons.html" ]
mojo_files_deps = [ "//chrome/browser/ui/webui/side_panel/reading_list:mojo_bindings_ts__generator" ]
mojo_files = [ "$root_gen_dir/chrome/browser/ui/webui/side_panel/reading_list/reading_list.mojom-webui.ts" ]
html_to_wrapper_template = "detect"
ts_composite = true
ts_deps = [
"../shared:build_ts",
"//third_party/lit/v3_0:build_ts",
"//ui/webui/resources/cr_components/color_change_listener:build_ts",
"//ui/webui/resources/cr_components/help_bubble:build_ts",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
ts_path_mappings =
[ "chrome://read-later.top-chrome/shared/*|" +
rebase_path(
"$root_gen_dir/chrome/browser/resources/side_panel/shared/tsc/*",
target_gen_dir) ]
ts_definitions = [ "//tools/typescript/definitions/metrics_private.d.ts" ]
webui_context_type = "trusted"
}