# Copyright 2019 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/webui_features.gni")
assert(enable_webui_tab_strip)
build_webui("build") {
grd_prefix = "tab_strip"
static_files = [
"alert_indicators/picture_in_picture_alt.svg",
"alert_indicators/serial_port.svg",
"alert_indicators/tab_audio_muting_rounded.svg",
"alert_indicators/tab_audio_rounded.svg",
"alert_indicators/tab_bluetooth_connected.svg",
"alert_indicators/tab_hid_connected.svg",
"alert_indicators/tab_media_capturing_with_arrow.svg",
"alert_indicators/tab_media_recording.svg",
"alert_indicators/tab_usb_connected.svg",
"alert_indicators/vr_headset.svg",
"tab_strip.html",
]
# Files holding a Polymer element definition and have an equivalent .html file.
web_component_files = [
"alert_indicator.ts",
"alert_indicators.ts",
"tab_group.ts",
"tab_list.ts",
"tab.ts",
]
html_to_wrapper_template = "native"
non_web_component_files = [
"drag_manager.ts",
"tabs_api_proxy.ts",
"tab_swiper.ts",
]
mojo_files_deps = [
"//chrome/browser/ui/webui/tab_strip:mojo_bindings_ts__generator",
"//chrome/browser/ui/webui/tabs:mojo_bindings_ts__generator",
]
mojo_files = [
"$root_gen_dir/chrome/browser/ui/webui/tab_strip/tab_strip.mojom-webui.ts",
"$root_gen_dir/chrome/browser/ui/webui/tabs/tabs.mojom-webui.ts",
]
ts_composite = true
ts_definitions = [ "//tools/typescript/definitions/metrics_private.d.ts" ]
ts_deps = [
"//ui/webui/resources/cr_components/color_change_listener:build_ts",
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
}