1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53

content / browser / resources / webxr_internals / BUILD.gn [blame]

# Copyright 2023 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_vr)

build_webui("build") {
  grd_prefix = "webxr_internals"

  static_files = [
    "webxr_internals.html",
    "webxr_internals.css",
  ]

  web_component_files = [
    "active_runtime_info_table.ts",
    "device_info_table.ts",
    "runtime_changelog_table.ts",
    "session_info_table.ts",
    "session_statistics_table.ts",
  ]

  non_web_component_files = [
    "browser_proxy.ts",
    "time_util.ts",
    "webxr_internals.ts",
    "xr_runtime_util.ts",
    "xr_session_util.ts",
  ]

  mojo_files = [
    "$root_gen_dir/content/browser/xr/webxr_internals/mojom/webxr_internals.mojom-webui.ts",
    "$root_gen_dir/device/vr/public/mojom/xr_device.mojom-webui.ts",
    "$root_gen_dir/device/vr/public/mojom/xr_session.mojom-webui.ts",
  ]

  mojo_files_deps = [
    "//content/browser/xr/webxr_internals/mojom:mojo_bindings_ts__generator",
    "//device/vr/public/mojom:xr_common_ts__generator",
  ]

  html_to_wrapper_template = "native"

  ts_deps = [
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]

  webui_context_type = "trusted"
  grit_output_dir = "$root_gen_dir/content"
}