# 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("//ui/webui/resources/tools/build_webui.gni")
build_webui("build") {
grd_prefix = "parent_access"
static_files = [
"parent_access.html",
"images/request_approval_dark.svg",
"images/request_approval.svg",
]
web_component_files = [
"parent_access_after.ts",
"parent_access_app.ts",
"parent_access_before.ts",
"parent_access_error.ts",
"parent_access_offline.ts",
"parent_access_disabled.ts",
"parent_access_template.ts",
"parent_access_ui.ts",
"flows/extension_approvals_after.ts",
"flows/extension_approvals_before.ts",
"flows/extension_approvals_disabled.ts",
"flows/extension_approvals_template.ts",
"flows/extension_permission.ts",
"flows/local_web_approvals_after.ts",
]
non_web_component_files = [
"parent_access_controller.ts",
"parent_access_ui_handler.ts",
"utils.ts",
"webview_manager.ts",
"parent_access_screen.ts",
]
mojo_files = [ "$root_gen_dir/chrome/browser/ui/webui/ash/parent_access/parent_access_ui.mojom-webui.ts" ]
mojo_files_deps = [
"//chrome/browser/ui/webui/ash/parent_access:mojo_bindings_ts__generator",
]
ts_composite = true
ts_definitions = [
"//tools/typescript/definitions/webview_tag.d.ts",
"//tools/typescript/definitions/web_request.d.ts",
"//tools/typescript/definitions/chrome_event.d.ts",
"//tools/typescript/definitions/context_menus.d.ts",
"//tools/typescript/definitions/tabs.d.ts",
"//tools/typescript/definitions/extension_types.d.ts",
]
ts_deps = [
"//ash/webui/common/resources:build_ts",
"//ash/webui/common/resources/cr_elements:build_ts",
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_components/color_change_listener:build_ts",
"//ui/webui/resources/mojo:build_ts",
]
webui_context_type = "trusted"
}