File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (142 lines) | stat: -rw-r--r-- 3,926 bytes parent folder | download | duplicates (5)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_win || is_mac || is_linux || is_chromeos)

import("//build/config/chrome_build.gni")
import("//build/config/ui.gni")

source_set("toasts") {
  sources = [
    "toast_controller.h",
    "toast_features.h",
    "toast_metrics.h",
    "toast_service.h",
    "toast_view.h",
  ]
  public_deps = [
    "//base",
    "//chrome/browser/ui/browser_window:browser_window",
    "//chrome/browser/ui/commerce:commerce",
    "//chrome/browser/ui/exclusive_access",
    "//chrome/browser/ui/omnibox:omnibox",
    "//chrome/browser/ui/tabs:tab_strip_model_observer",
    "//chrome/browser/ui/toasts/api:toasts",
    "//components/commerce/core:feature_list",
    "//components/omnibox/browser:vector_icons",
    "//components/omnibox/common:common",
    "//content/public/browser",
    "//ui/base",
    "//ui/views",
  ]
}

source_set("impl") {
  sources = [
    "toast_controller.cc",
    "toast_features.cc",
    "toast_metrics.cc",
    "toast_service.cc",
    "toast_view.cc",
  ]
  public_deps = [ "//chrome/browser:browser_public_dependencies" ]
  deps = [
    ":toasts",
    "//chrome/app:generated_resources",
    "//chrome/app:generated_resources_grit",
    "//chrome/app/vector_icons",
    "//chrome/browser:browser_process",
    "//chrome/browser:browser_public_dependencies",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/ui:browser_element_identifiers",
    "//chrome/browser/ui/views/side_panel",
    "//components/data_sharing/public:features",
    "//components/plus_addresses:features",
    "//components/plus_addresses/resources/strings",
    "//components/safe_browsing/core/common:features",
    "//components/safe_browsing/core/common:safe_browsing_prefs",
    "//components/vector_icons:vector_icons",
    "//ui/base/metadata",
    "//ui/compositor",
    "//ui/menus",
  ]
  if (is_chrome_branded) {
    deps += [ "//components/plus_addresses/resources:vector_icons" ]
  }
}

source_set("interactive_ui_tests") {
  testonly = true
  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
  sources = [ "toast_controller_interactive_ui_test.cc" ]
  deps = [
    ":toasts",
    "//base",
    "//base/test:test_support",
    "//chrome/app:command_ids",
    "//chrome/browser",
    "//chrome/browser:browser_process",
    "//chrome/browser/ui:browser_element_identifiers",
    "//chrome/browser/ui:ui",
    "//chrome/test:test_support",
    "//components/plus_addresses:features",
    "//components/safe_browsing/core/common:features",
    "//components/vector_icons",
    "//content/public/browser",
    "//content/test:test_support",
    "//testing/gtest",
    "//ui/base:base",
    "//ui/base:test_support",
    "//ui/gfx",
    "//ui/strings:ui_strings_grit",
    "//ui/views",
    "//ui/views:test_support",
  ]

  if (use_ozone) {
    deps += [ "//ui/ozone" ]
  }
}

source_set("browser_tests") {
  testonly = true
  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
  sources = [
    "toast_service_browsertest.cc",
    "toast_view_browsertest.cc",
  ]
  deps = [
    ":toasts",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser:browser_process",
    "//chrome/browser/ui:ui",
    "//chrome/test:test_support",
    "//components/data_sharing/public:features",
    "//components/plus_addresses:features",
    "//components/safe_browsing/core/common:features",
    "//components/vector_icons",
    "//content/public/browser",
    "//content/test:test_support",
    "//testing/gtest",
    "//ui/base:base",
    "//ui/gfx",
    "//ui/strings:ui_strings_grit",
    "//ui/views",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "toast_controller_unittest.cc" ]
  deps = [
    ":toasts",
    "//base",
    "//base/test:test_support",
    "//chrome/test:test_support",
    "//testing/gtest",
    "//ui/gfx",
  ]
}