| # 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" |
| |
| web_component_files = [ |
| "ml/ml_calculator.ts", |
| "ml/ml_chart.ts", |
| "ml/ml_table.ts", |
| "ml/ml_ui.ts", |
| ] |
| |
| 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 ts_files. |
| ts_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", |
| "//components/omnibox/browser:mojo_bindings_ts__generator", |
| ] |
| |
| mojo_files = [ |
| "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox_internals.mojom-webui.ts", |
| "$root_gen_dir/components/omnibox/browser/omnibox.mojom-webui.ts", |
| ] |
| |
| ts_tsconfig_base = "tsconfig_base.json" |
| ts_definitions = [ "css.d.ts" ] |
| ts_deps = [ |
| "//ui/webui/resources/js:build_ts", |
| "//ui/webui/resources/mojo:build_ts", |
| ] |
| |
| webui_context_type = "trusted" |
| } |