# Copyright 2026 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")

build_webui("build") {
  grd_prefix = "omnibox_logging"
  generate_grdp = true

  static_files = [ "logs.html" ]

  css_files = [ "logs_app.css" ]

  ts_files = [
    "logs_app.ts",
    "logs_app.html.ts",
    "logs_app_helpers.ts",
    "logs_browser_proxy.ts",
  ]

  mojo_files_deps = [
    "//chrome/browser/ui/webui/omnibox/logging:mojo_bindings_ts__generator",
  ]

  mojo_files = [
    "$root_gen_dir/chrome/browser/ui/webui/omnibox/logging/logs.mojom-webui.ts",
  ]

  ts_deps = [
    "//third_party/lit/v3_0: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"
}
