| # 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/polymer.gni") |
| |
| js_type_check("closure_compile") { |
| uses_legacy_modules = true |
| deps = [ ":cr_dialog" ] |
| } |
| |
| js_library("cr_dialog") { |
| deps = [ |
| "..:cr_container_shadow_behavior", |
| "//ui/webui/resources/js:assert", |
| ] |
| } |
| |
| polymer_modulizer("cr_dialog") { |
| js_file = "cr_dialog.js" |
| html_file = "cr_dialog.html" |
| html_type = "dom-module" |
| migrated_imports = |
| [ "ui/webui/resources/cr_elements/cr_icon_button/cr_icon_button.html" ] |
| auto_imports = [ |
| "ui/webui/resources/cr_elements/cr_container_shadow_behavior.html|CrContainerShadowBehavior", |
| "ui/webui/resources/html/assert.html|assert", |
| ] |
| } |
| |
| js_type_check("closure_compile_module") { |
| is_polymer3 = true |
| deps = [ ":cr_dialog.m" ] |
| } |
| |
| js_library("cr_dialog.m") { |
| sources = [ |
| "$root_gen_dir/ui/webui/resources/cr_elements/cr_dialog/cr_dialog.m.js", |
| ] |
| deps = [ |
| "..:cr_container_shadow_behavior.m", |
| "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled", |
| "//ui/webui/resources/js:assert.m", |
| ] |
| extra_deps = [ ":cr_dialog_module" ] |
| } |