| # 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(enable_extensions, "enable extensions check failed") |
| assert(!is_android, |
| "extensions zero state promo should not be enabled for android") |
| assert(!is_ios, "extensions zero state promo should not be enabled for ios") |
| |
| build_webui("build") { |
| grd_prefix = "extensions_zero_state_promo" |
| |
| static_files = [ "zero_state_promo.html" ] |
| |
| ts_files = [ |
| "zero_state_promo_app.ts", |
| "zero_state_promo_app.html.ts", |
| "zero_state_promo_browser_proxy.ts", |
| ] |
| |
| icons_html_files = [ "icons.html" ] |
| |
| # Files that are passed as input to css_to_wrapper(). |
| css_files = [ "zero_state_promo_app.css" ] |
| |
| mojo_files_deps = [ |
| "//chrome/browser/ui/webui/extensions_zero_state_promo:mojo_bindings_ts__generator", |
| "//ui/webui/resources/cr_components/help_bubble:mojo_bindings_ts__generator", |
| ] |
| mojo_files = [ |
| "$root_gen_dir/chrome/browser/ui/webui/extensions_zero_state_promo/zero_state_promo.mojom-webui.ts", |
| "$root_gen_dir/ui/webui/resources/cr_components/help_bubble/custom_help_bubble.mojom-webui.ts", |
| ] |
| |
| ts_composite = true |
| |
| ts_deps = [ |
| "//third_party/lit/v3_0: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", |
| ] |
| |
| webui_context_type = "trusted" |
| } |