| # Copyright 2019 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") |
| |
| source_set("translate_internals") { |
| sources = [ |
| "translate_internals_handler.cc", |
| "translate_internals_handler.h", |
| ] |
| deps = [ |
| "//base", |
| "//components/language/core/browser", |
| "//components/prefs", |
| "//components/translate/core/browser", |
| "//components/translate/core/common", |
| "//components/variations/service", |
| "//services/network/public/cpp", |
| "//ui/base", |
| ] |
| } |
| |
| build_webui("build") { |
| grd_prefix = "translate_internals" |
| |
| static_files = [ |
| "translate_internals.css", |
| "translate_internals.html", |
| ] |
| |
| ts_files = [ "translate_internals.js" ] |
| |
| ts_deps = [ |
| "//ui/webui/resources/cr_elements:build_ts", |
| "//ui/webui/resources/js:build_ts", |
| ] |
| |
| webui_context_type = "trusted" |
| |
| grit_output_dir = "$root_gen_dir/components" |
| } |