summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/tab_strip/BUILD.gn
blob: ece86c1ad36d2e1b06c849f7700326a9b3830983 (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
# Copyright 2019 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") {
  deps = [
    ":custom_element",
    ":tab",
    ":tab_list",
    ":tabs_api_proxy",
  ]
}

js_library("custom_element") {
}

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

js_library("tab") {
  deps = [
    "//ui/webui/resources/js:icon.m",
  ]
  externs_list = [ "$externs_path/chrome.js" ]
}

js_library("tab_list") {
  deps = [
    ":types",
  ]
  externs_list = [ "$externs_path/chrome.js" ]
}

js_library("types") {
}

group("tab_strip_modules") {
  deps = [
    ":tab_list_module",
    ":tab_module",
  ]
}

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

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