| # 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_glic) |
| |
| build_webui("build") { |
| grd_prefix = "glic_fre" |
| |
| static_files = [ |
| "fre.css", |
| "fre.html", |
| ] |
| |
| ts_files = [ |
| "fre_app_controller.ts", |
| "icons.html.ts", |
| "main.ts", |
| "metrics_enums.ts", |
| ] |
| |
| webui_context_type = "trusted" |
| ts_deps = [ |
| "//chrome/browser/resources/glic/shared:build_ts", |
| "//ui/webui/resources/cr_elements:build_ts", |
| "//ui/webui/resources/js:build_ts", |
| "//ui/webui/resources/mojo:build_ts", |
| ] |
| |
| mojo_files_deps = [ "//chrome/browser/glic/fre:mojo_bindings_ts__generator" ] |
| mojo_files = |
| [ "$root_gen_dir/chrome/browser/glic/fre/glic_fre.mojom-webui.ts" ] |
| |
| ts_definitions = [ |
| # These files are necessary for chrome.webviewTag: |
| "//tools/typescript/definitions/chrome_event.d.ts", |
| "//tools/typescript/definitions/context_menus.d.ts", |
| "//tools/typescript/definitions/extension_types.d.ts", |
| "//tools/typescript/definitions/metrics_private.d.ts", |
| "//tools/typescript/definitions/tabs.d.ts", |
| "//tools/typescript/definitions/web_request.d.ts", |
| "//tools/typescript/definitions/webview_tag.d.ts", |
| ] |
| |
| ts_path_mappings = [ "/shared/*|../shared/tsc/*" ] |
| |
| ts_composite = true |
| } |