# Copyright 2018 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"
# TODO(crbug.com/339686362): Remove this once `terser` (JS minifier) has been
# updated to support the new `with` syntax.
optimize = false
web_component_files = [
"ml/ml_calculator.ts",
"ml/ml_chart.ts",
"ml/ml_table.ts",
"ml/ml_ui.ts",
]
html_to_wrapper_template = "native"
static_files = [
"icon_tabs.svg",
"ml/ml.css",
"ml/ml.html",
"ml/ml_calculator.css",
"ml/ml_chart.css",
"ml/ml_table.css",
"ml/ml_ui.css",
"omnibox.css",
"omnibox.html",
"omnibox_input.css",
"omnibox_output_column_widths.css",
"output_results_group.css",
]
# Some of the files below even though they hold web component definitions,
# they don't use dedicated HTML files for each web component and therefore for
# the purposes of build_webui() are passed as non_web_component_files.
non_web_component_files = [
"ml/ml_browser_proxy.ts",
"omnibox.ts",
"omnibox_element.ts",
"omnibox_input.ts",
"omnibox_output.ts",
"omnibox_util.ts",
]
mojo_files_deps =
[ "//chrome/browser/ui/webui/omnibox:mojo_bindings_ts__generator" ]
mojo_files =
[ "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom-webui.ts" ]
ts_tsconfig_base = "tsconfig_base.json"
ts_deps = [
"//ui/webui/resources/js:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
}