# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
import("//ui/webui/resources/tools/build_webui.gni")
assert(!is_android && !is_ios)
mojom("mojom") {
sources = [ "most_visited.mojom" ]
public_deps = [
"//mojo/public/mojom/base",
"//skia/public/mojom",
"//url/mojom:url_mojom_gurl",
]
webui_module_path = "chrome://resources/cr_components/most_visited/"
}
build_webui("build") {
grd_prefix = "cr_components_most_visited"
non_web_component_files = [
"browser_proxy.ts",
"most_visited.html.ts",
"most_visited.ts",
"window_proxy.ts",
]
css_files = [ "most_visited.css" ]
mojo_files_deps = [ ":mojom_ts__generator" ]
mojo_files = [ "$target_gen_dir/most_visited.mojom-webui.ts" ]
ts_out_dir = "$root_gen_dir/ui/webui/resources/tsc/cr_components/most_visited"
ts_composite = true
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 = "relative"
generate_grdp = true
grd_resource_path_prefix = rebase_path(".", "//ui/webui/resources")
}