blob: 0f2895c8bae4d8d85c0cd85b8276bdc6f1e8ab3e [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 = [
":main_page_mixin",
":settings_animated_pages",
":settings_section",
":settings_subpage",
]
}
js_library("main_page_mixin") {
deps = [
":settings_section",
"..:route",
"..:router",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:util.m",
]
}
js_library("settings_animated_pages") {
deps = [
":settings_subpage",
"..:router",
"..:setting_id_param_util",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:load_time_data.m",
"//ui/webui/resources/js/cr/ui:focus_without_ink.m",
]
}
js_library("settings_section") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
}
js_library("settings_subpage") {
deps = [
"..:router",
"..:setting_id_param_util",
"//third_party/polymer/v3_0/components-chromium/iron-resizable-behavior:iron-resizable-behavior",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements:find_shortcut_behavior",
"//ui/webui/resources/cr_elements/cr_search_field:cr_search_field",
"//ui/webui/resources/js:assert.m",
"//ui/webui/resources/js:event_tracker.m",
"//ui/webui/resources/js:i18n_behavior.m",
"//ui/webui/resources/js:load_time_data.m",
"//ui/webui/resources/js:util.m",
"//ui/webui/resources/js/cr/ui:focus_without_ink.m",
]
}
html_to_js("web_components") {
js_files = [
"settings_animated_pages.js",
"settings_section.js",
"settings_subpage.js",
]
}