# Copyright 2022 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")
assert(!is_android, "!is_android check failed")
build_webui("build") {
grd_prefix = "privacy_sandbox"
static_files = [
"privacy_sandbox_dialog.html",
"privacy_sandbox_combined_dialog.html",
"privacy_sandbox_privacy_policy.html",
"privacy_sandbox_notice_dialog.html",
"privacy_sandbox_notice_restricted_dialog.html",
"images/privacy_sandbox_confirmation_banner.svg",
"images/privacy_sandbox_confirmation_banner_dark.svg",
"images/topics_banner.svg",
"images/topics_banner_dark.svg",
"images/fledge_banner.svg",
"images/fledge_banner_dark.svg",
"images/chrome_logo.svg",
]
web_component_files = [
"privacy_sandbox_dialog_app.ts",
"privacy_sandbox_combined_dialog_app.ts",
"privacy_sandbox_notice_dialog_app.ts",
"privacy_sandbox_privacy_policy_step.ts",
"privacy_sandbox_notice_restricted_dialog_app.ts",
"privacy_sandbox_dialog_consent_step.ts",
"privacy_sandbox_dialog_notice_step.ts",
"privacy_sandbox_dialog_learn_more.ts",
]
non_web_component_files = [
"privacy_sandbox_dialog_browser_proxy.ts",
"privacy_sandbox_dialog_resize_mixin.ts",
"privacy_sandbox_dialog_mixin.ts",
]
css_files = [
"shared_style.css",
"shared_vars.css",
]
ts_composite = true
ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]
ts_deps = [
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
]
webui_context_type = "trusted"
}