blob: 910cb4f66525065598e86440b5bda0623787b1d4 [file] [log] [blame]
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/closure_compiler/compile_js.gni")
import("//tools/polymer/html_to_js.gni")
import("../../../nearby_share/shared/nearby_shared.gni")
import("../os_settings.gni")
js_type_check("closure_compile") {
is_polymer3 = true
# TODO(crbug.com/1121865): browser_resolver_prefix_replacements allows path
# from ../../shared/* to resolve to ../../../nearby_share/shared/* for closure
# purposes.
closure_flags = os_settings_closure_flags
deps = [
":nearby_share_confirm_page",
":nearby_share_contact_visibility_dialog",
":nearby_share_data_usage_dialog",
":nearby_share_device_name_dialog",
":nearby_share_high_visibility_page",
":nearby_share_receive_dialog",
":nearby_share_receive_manager",
":nearby_share_subpage",
]
}
js_library("nearby_share_confirm_page") {
deps = [
"//chrome/browser/resources/nearby_share/shared:nearby_device",
"//chrome/browser/resources/nearby_share/shared:nearby_page_template",
"//chrome/browser/resources/nearby_share/shared:nearby_preview",
"//chrome/browser/resources/nearby_share/shared:nearby_progress",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("nearby_share_contact_visibility_dialog") {
deps = [
"//chrome/browser/resources/nearby_share/shared:nearby_contact_visibility",
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings_behavior",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
]
}
js_library("nearby_share_data_usage_dialog") {
deps = [
":types",
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings",
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings_behavior",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/cr_elements/cr_radio_button:cr_radio_button.m",
"//ui/webui/resources/cr_elements/cr_radio_group:cr_radio_group",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("nearby_share_device_name_dialog") {
deps = [
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings_behavior",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/cr_elements/cr_input:cr_input.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("nearby_share_high_visibility_page") {
deps = [
"//chrome/browser/resources/nearby_share/shared:nearby_page_template",
"//ui/webui/resources/cr_elements/cr_lottie:cr_lottie.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("nearby_share_receive_dialog") {
deps = [
":nearby_share_confirm_page",
":nearby_share_high_visibility_page",
":nearby_share_receive_manager",
"//chrome/browser/resources/nearby_share/shared:nearby_onboarding_one_page",
"//chrome/browser/resources/nearby_share/shared:nearby_onboarding_page",
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings_behavior",
"//chrome/browser/resources/nearby_share/shared:nearby_visibility_page",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:load_time_data",
]
externs_list = [ "//ui/webui/resources/cr_elements/cr_view_manager/cr_view_manager_externs.js" ]
}
js_library("nearby_share_receive_manager") {
deps = [
":nearby_share_confirm_page",
":nearby_share_high_visibility_page",
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings_behavior",
"//chrome/browser/ui/webui/nearby_share:mojom_js_library_for_compile",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("nearby_share_subpage") {
deps = [
":nearby_account_manager_browser_proxy",
":nearby_share_contact_visibility_dialog",
":nearby_share_data_usage_dialog",
":nearby_share_device_name_dialog",
":nearby_share_receive_dialog",
":nearby_share_receive_manager",
":types",
"..:deep_linking_behavior",
"..:os_route",
"..:prefs_behavior",
"..:route_observer_behavior",
"../..:router",
"//chrome/browser/resources/nearby_share/shared:nearby_onboarding_one_page",
"//chrome/browser/resources/nearby_share/shared:nearby_onboarding_page",
"//chrome/browser/resources/nearby_share/shared:nearby_share_settings_behavior",
"//chrome/browser/resources/nearby_share/shared:nearby_visibility_page",
"//ui/webui/resources/js:cr.m",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:load_time_data",
]
}
js_library("nearby_account_manager_browser_proxy") {
}
js_library("types") {
}
html_to_js("web_components") {
js_files = [
"nearby_share_confirm_page.js",
"nearby_share_contact_visibility_dialog.js",
"nearby_share_data_usage_dialog.js",
"nearby_share_device_name_dialog.js",
"nearby_share_high_visibility_page.js",
"nearby_share_receive_dialog.js",
"nearby_share_subpage.js",
]
}