summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/signin/sync_confirmation/BUILD.gn
blob: 4492e54331934bb2c7503852b4369830f64c2c59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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")

group("closure_compile") {
  deps = [
    ":closure_compile_polymer2",
    ":closure_compile_polymer3",
  ]
}

js_type_check("closure_compile_polymer2") {
  deps = [
    ":sync_disabled_confirmation",
  ]
}

js_type_check("closure_compile_polymer3") {
  is_polymer3 = true
  deps = [
    ":sync_confirmation",
    ":sync_confirmation_app",
    ":sync_confirmation_browser_proxy",
  ]
}

js_library("sync_confirmation") {
  deps = [
    ":sync_confirmation_browser_proxy",
    "//ui/webui/resources/js:cr.m",
  ]
}

js_library("sync_confirmation_app") {
  deps = [
    ":sync_confirmation_browser_proxy",
    "//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:web_ui_listener_behavior.m",
  ]
}

js_library("sync_confirmation_browser_proxy") {
  deps = [
    "//ui/webui/resources/js:cr.m",
  ]
  externs_list = [
    "$externs_path/chrome_send.js",
    "$externs_path/metrics_private.js",
  ]
}

js_library("sync_disabled_confirmation") {
  deps = [
    "//ui/webui/resources/js:assert",
    "//ui/webui/resources/js:cr",
    "//ui/webui/resources/js:util",
  ]
}

group("polymer3_elements") {
  deps = [
    ":sync_confirmation_app_module",
  ]
}

polymer_modulizer("sync_confirmation_app") {
  html_file = "sync_confirmation_app.html"
  js_file = "sync_confirmation_app.js"
  html_type = "v3-ready"
}