blob: 1af235016e95b1b3af383681445c165397cdf7b4 [file] [log] [blame]
# Copyright 2018 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("../settings.gni")
js_type_check("closure_compile") {
is_polymer3 = true
closure_flags = settings_closure_flags
deps = [
":address_edit_dialog",
":address_remove_confirmation_dialog",
":autofill_page",
":autofill_section",
":avatar_icon",
":blocking_request_manager",
":credit_card_edit_dialog",
":credit_card_list_entry",
":merge_exceptions_store_copies_behavior",
":merge_passwords_store_copies_behavior",
":multi_store_exception_entry",
":multi_store_id_handler",
":multi_store_password_ui_entry",
":password_check",
":password_check_edit_dialog",
":password_check_edit_disclaimer_dialog",
":password_check_list_item",
":password_check_mixin",
":password_edit_dialog",
":password_list_item",
":password_manager_proxy",
":password_move_multiple_passwords_to_account_dialog",
":password_move_to_account_dialog",
":password_remove_confirmation_dialog",
":password_remove_dialog",
":passwords_device_section",
":passwords_export_dialog",
":passwords_list_handler",
":passwords_section",
":payments_list",
":payments_section",
":show_password_mixin",
":upi_id_list_entry",
]
}
js_library("address_edit_dialog") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog.m",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:cr.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
externs_list = [ "$externs_path/autofill_private.js" ]
}
js_library("autofill_page") {
deps = [
":password_check_mixin",
"..:hats_browser_proxy",
"..:open_window_proxy",
"..:route",
"..:router",
"../prefs:prefs_behavior",
]
externs_list = [
"$externs_path/passwords_private.js",
"$externs_path/settings_private.js",
]
}
js_library("autofill_section") {
deps = [
":address_edit_dialog",
":address_remove_confirmation_dialog",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:cr.m",
"//ui/webui/resources/js:load_time_data.m",
"//ui/webui/resources/js/cr/ui:focus_without_ink.m",
]
externs_list = [
"$externs_path/autofill_private.js",
"$externs_path/metrics_private.js",
]
}
js_library("avatar_icon") {
deps = [
"../people_page:sync_browser_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:web_ui_listener_behavior.m",
]
}
js_library("blocking_request_manager") {
}
js_library("address_remove_confirmation_dialog") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog.m",
]
}
js_library("credit_card_edit_dialog") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
externs_list = [ "$externs_path/autofill_private.js" ]
}
js_library("credit_card_list_entry") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
externs_list = [ "$externs_path/autofill_private.js" ]
}
js_library("password_check") {
deps = [
":blocking_request_manager",
":password_check_mixin",
":password_manager_proxy",
"..:route",
"../prefs:prefs_behavior",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("password_check_mixin") {
deps = [
":password_manager_proxy",
"//ui/webui/resources/js:plural_string_proxy",
]
externs_list = [ "$externs_path/passwords_private.js" ]
}
js_library("password_check_edit_dialog") {
deps = [
":password_manager_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("password_check_edit_disclaimer_dialog") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("password_check_list_item") {
deps = [
":blocking_request_manager",
":password_manager_proxy",
"..:open_window_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:assert.m",
]
}
js_library("password_edit_dialog") {
deps = [
":show_password_mixin",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_input:cr_input.m",
]
}
js_library("multi_store_password_ui_entry") {
sources = [ "multi_store_password_ui_entry.js" ]
deps = [
":multi_store_id_handler",
":password_manager_proxy",
"//ui/webui/resources/js:assert.m",
]
}
js_library("multi_store_exception_entry") {
sources = [ "multi_store_exception_entry.js" ]
deps = [
":multi_store_id_handler",
":password_manager_proxy",
"//ui/webui/resources/js:assert.m",
]
}
js_library("multi_store_id_handler") {
sources = [ "multi_store_id_handler.js" ]
deps = [ "//ui/webui/resources/js:assert.m" ]
}
js_library("password_remove_confirmation_dialog") {
deps = [
":password_manager_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("password_list_item") {
deps = [
":blocking_request_manager",
":show_password_mixin",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:load_time_data.m",
"//ui/webui/resources/js/cr/ui:focus_row_behavior.m",
]
}
js_library("passwords_list_handler") {
deps = [
":blocking_request_manager",
":password_edit_dialog",
":password_manager_proxy",
":password_move_to_account_dialog",
":password_remove_dialog",
"../people_page:sync_browser_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_toast:cr_toast",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:web_ui_listener_behavior.m",
"//ui/webui/resources/js/cr/ui:focus_without_ink.m",
]
}
js_library("password_move_multiple_passwords_to_account_dialog") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
}
js_library("password_move_to_account_dialog") {
deps = [
":avatar_icon",
":multi_store_password_ui_entry",
":password_manager_proxy",
"//third_party/polymer/v3_0/components-chromium/iron-icon",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog.m",
"//ui/webui/resources/js:assert.m",
]
}
js_library("password_manager_proxy") {
deps = [ "//ui/webui/resources/js:cr.m" ]
externs_list =
chrome_extension_public_externs + [ "$externs_path/passwords_private.js" ]
}
js_library("password_remove_dialog") {
deps = [
":avatar_icon",
":multi_store_password_ui_entry",
"../people_page:sync_browser_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
"//ui/webui/resources/cr_elements/cr_checkbox:cr_checkbox.m",
"//ui/webui/resources/cr_elements/cr_dialog:cr_dialog.m",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
]
}
js_library("passwords_export_dialog") {
deps = [
":blocking_request_manager",
":password_manager_proxy",
]
}
js_library("passwords_section") {
deps = [
":avatar_icon",
":merge_exceptions_store_copies_behavior",
":merge_passwords_store_copies_behavior",
":multi_store_exception_entry",
":multi_store_password_ui_entry",
":password_list_item",
":password_manager_proxy",
":passwords_list_handler",
"..:global_scroll_target_mixin",
"..:route",
"../people_page:profile_info_browser_proxy",
"../people_page:sync_browser_proxy",
"../prefs:prefs_behavior",
"//third_party/polymer/v3_0/components-chromium/iron-a11y-announcer:iron-a11y-announcer",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:util.m",
"//ui/webui/resources/js:web_ui_listener_behavior.m",
"//ui/webui/resources/js/cr/ui:focus_without_ink.m",
]
externs_list = [
"$externs_path/passwords_private.js",
"$externs_path/quick_unlock_private.js",
]
}
js_library("passwords_device_section") {
deps = [
":avatar_icon",
":merge_passwords_store_copies_behavior",
":multi_store_password_ui_entry",
":password_list_item",
":password_manager_proxy",
":password_move_multiple_passwords_to_account_dialog",
":passwords_list_handler",
"..:global_scroll_target_mixin",
"..:i18n_setup",
"..:open_window_proxy",
"..:route",
"../people_page:sync_browser_proxy",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:util.m",
"//ui/webui/resources/js:web_ui_listener_behavior.m",
]
}
js_library("payments_list") {
deps = [
":credit_card_list_entry",
":upi_id_list_entry",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:load_time_data.m",
]
}
js_library("payments_section") {
deps = [
":autofill_section",
":credit_card_edit_dialog",
":payments_list",
"..:metrics_browser_proxy",
"//ui/webui/resources/cr_elements/cr_action_menu:cr_action_menu",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:cr.m",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:load_time_data.m",
"//ui/webui/resources/js/cr/ui:focus_without_ink.m",
]
externs_list = [ "$externs_path/autofill_private.js" ]
}
js_library("show_password_mixin") {
deps = [
":blocking_request_manager",
":multi_store_password_ui_entry",
":password_manager_proxy",
]
externs_list = [ "$externs_path/passwords_private.js" ]
}
js_library("merge_passwords_store_copies_behavior") {
deps = [
":multi_store_password_ui_entry",
":password_manager_proxy",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:list_property_update_behavior.m",
]
}
js_library("merge_exceptions_store_copies_behavior") {
deps = [
":multi_store_exception_entry",
":password_manager_proxy",
"//ui/webui/resources/js:assert.m",
]
}
js_library("upi_id_list_entry") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
}
html_to_js("web_components") {
js_files = [
"address_edit_dialog.js",
"address_remove_confirmation_dialog.js",
"autofill_page.js",
"avatar_icon.js",
"autofill_section.js",
"passwords_list_handler.js",
"credit_card_edit_dialog.js",
"credit_card_list_entry.js",
"password_check_edit_dialog.js",
"password_check_edit_disclaimer_dialog.js",
"password_check_list_item.js",
"password_check.js",
"password_edit_dialog.js",
"password_remove_dialog.js",
"password_list_item.js",
"password_move_multiple_passwords_to_account_dialog.js",
"password_move_to_account_dialog.js",
"password_remove_confirmation_dialog.js",
"passwords_export_dialog.js",
"passwords_section.js",
"passwords_device_section.js",
"passwords_shared_css.js",
"payments_list.js",
"payments_section.js",
"upi_id_list_entry.js",
]
}