# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//extensions/buildflags/buildflags.gni")
import("//ui/webui/resources/tools/build_webui.gni")
build_webui("build") {
grd_prefix = "history"
static_files = [
"history.html",
"images/history_embeddings_promo.svg",
"images/history_embeddings_promo_dark.svg",
"images/list.svg",
"images/sign_in_promo_dark.svg",
"images/sign_in_promo.svg",
"images/compare_sync_promo_dark.svg",
"images/compare_sync_promo.svg",
]
# Files holding a Polymer element definition and have an equivalent .html file.
web_component_files = [
"app.ts",
"history_embeddings_promo.ts",
"history_item.ts",
"history_list.ts",
"history_toolbar.ts",
"product_specifications_item.ts",
"product_specifications_lists.ts",
"side_bar.ts",
"synced_device_card.ts",
"synced_device_manager.ts",
]
non_web_component_files = [
"browser_service.ts",
"constants.ts",
"externs.ts",
"history.ts",
"lazy_load.ts",
"query_manager.ts",
"router.ts",
"searched_label.ts",
]
# Files that are passed as input to css_to_wrapper().
css_files = [
"shared_style.css",
"shared_vars.css",
]
icons_html_files = [ "shared_icons.html" ]
ts_composite = true
ts_definitions = [
"//tools/typescript/definitions/chrome_send.d.ts",
"//tools/typescript/definitions/metrics_private.d.ts",
]
mojo_files_deps = [
"//ui/webui/resources/cr_components/commerce:mojo_bindings_ts__generator",
]
mojo_files = [ "$root_gen_dir/ui/webui/resources/cr_components/commerce/shopping_service.mojom-webui.ts" ]
ts_deps = [
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_components/commerce:build_ts",
"//ui/webui/resources/cr_components/help_bubble:build_ts",
"//ui/webui/resources/cr_components/history:build_ts",
"//ui/webui/resources/cr_components/history_clusters:build_ts",
"//ui/webui/resources/cr_components/history_embeddings:build_ts",
"//ui/webui/resources/cr_components/managed_footnote: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 = "history"
optimize_webui_in_files = [
"history.js",
"lazy_load.js",
]
}
}