blob: 30b642b90c95d5b2d7bfa0ecb61fac9c47f2e04a [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")
# TODO(dpapad): Add compile targets for all files, crbug.com/721073.
group("closure_compile") {
deps = [
":pdf_resources",
"elements/viewer-bookmark:closure_compile",
"elements/viewer-error-screen:closure_compile",
"elements/viewer-page-indicator:closure_compile",
"elements/viewer-page-selector:closure_compile",
"elements/viewer-password-screen:closure_compile",
"elements/viewer-save-called-screen:closure_compile",
]
}
js_library("browser_api") {
externs_list = [
"$externs_path/chrome_extensions.js",
"$externs_path/mime_handler_private.js",
]
}
js_library("pdf_fitting_type") {
}
js_library("coords_transformer") {
}
js_library("gesture_detector") {
}
js_library("open_pdf_params_parser") {
deps = [
":pdf_fitting_type",
]
}
js_library("pdf_scripting_api") {
deps = [
"//ui/webui/resources/js:assert",
]
}
js_library("viewport_scroller") {
}
js_type_check("pdf_resources") {
deps = [
":browser_api",
":coords_transformer",
":gesture_detector",
":open_pdf_params_parser",
":pdf_fitting_type",
":pdf_scripting_api",
":viewport_scroller",
]
}