blob: 19c87d9900bdf8fdfa1b034e571e8b98e86ae0e3 [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")
html_to_js("web_components") {
js_files = [
"audio_player.js",
"control_panel.js",
"track_info_panel.js",
"track_list.js",
"repeat_button.js",
]
}
js_library("audio_player") {
deps = [
":control_panel",
":track_info_panel",
":track_list",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
}
js_library("control_panel") {
deps = [
":repeat_button",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/file_manager/file_manager/foreground/elements:files_icon_button",
"//ui/webui/resources/cr_elements/cr_slider:cr_slider",
"//ui/webui/resources/js:assert.m",
]
}
js_library("track_info_panel") {
deps = [
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/webui/resources/cr_elements/cr_button:cr_button.m",
]
}
js_library("track_list") {
deps = [
"//third_party/polymer/v3_0/components-chromium/paper-ripple:paper-ripple",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
]
}
js_library("repeat_button") {
deps = [
"//third_party/polymer/v3_0/components-chromium/iron-behaviors:iron-button-state",
"//third_party/polymer/v3_0/components-chromium/iron-behaviors:iron-control-state",
"//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
"//ui/file_manager/file_manager/foreground/elements:files_toggle_ripple",
]
}
js_type_check("closure_compile") {
is_polymer3 = true
closure_flags = default_closure_args + [ "browser_resolver_prefix_replacements=\"chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/=../../ui/file_manager/file_manager/\"" ]
deps = [
":audio_player",
":control_panel",
":repeat_button",
":track_info_panel",
":track_list",
]
}