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 143 144 145 146 147 148
|
# 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.
import("//mojo/public/tools/bindings/mojom.gni")
import("//pdf/features.gni")
assert(!is_android && !is_fuchsia)
mojom("mojo_bindings") {
sources = [ "whats_new.mojom" ]
webui_module_path = "/"
public_deps = [
"//mojo/public/mojom/base",
"//url/mojom:url_mojom_gurl",
]
}
source_set("whats_new") {
sources = [ "whats_new_util.h" ]
public_deps = [
"//base",
"//url",
]
if (is_win || is_mac || is_linux) {
sources += [
"whats_new_fetcher.h",
"whats_new_handler.h",
"whats_new_registrar.h",
"whats_new_storage_service_impl.h",
"whats_new_ui.h",
]
public_deps += [
"//chrome/browser:browser_process",
"//chrome/browser/ui/webui/whats_new:mojo_bindings",
"//chrome/common:constants",
"//components/lens:features",
"//components/prefs",
"//components/user_education/webui",
"//content/public/browser",
"//mojo/public/cpp/bindings",
"//ui/base",
"//ui/webui",
"//ui/webui/resources/js/browser_command:mojo_bindings",
]
}
}
source_set("impl") {
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
sources = [ "whats_new_util.cc" ]
deps = [
":whats_new",
"//base",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui:ui_features",
"//chrome/common",
"//chrome/common:version_header",
"//components/performance_manager",
"//components/prefs",
"//net",
"//ui/base:features",
"//url",
]
if (enable_pdf) {
deps += [ "//pdf:features" ]
}
if (is_win || is_mac || is_linux) {
sources += [
"whats_new_fetcher.cc",
"whats_new_handler.cc",
"whats_new_registrar.cc",
"whats_new_storage_service_impl.cc",
"whats_new_ui.cc",
]
deps += [
"//chrome/browser:global_features",
"//chrome/browser/resources/whats_new:resources",
"//chrome/browser/ui:browser_list",
"//chrome/browser/ui/hats",
"//chrome/common:version_header",
"//components/bookmarks/common",
"//components/history_embeddings",
"//components/user_education/common",
"//components/variations/service",
"//ui/webui",
]
}
}
if (is_linux || is_mac || is_win) {
source_set("unit_tests") {
testonly = true
sources = [
"whats_new_handler_unittest.cc",
"whats_new_registrar_unittest.cc",
"whats_new_storage_service_impl_unittest.cc",
]
deps = [
":mojo_bindings",
":whats_new",
"//base",
"//base/test:test_support",
"//chrome/browser/ui",
"//chrome/browser/ui:test_support",
"//chrome/browser/ui/hats",
"//chrome/browser/ui/hats:test_support",
"//chrome/common:chrome_features",
"//chrome/common:constants",
"//chrome/common:version_header",
"//chrome/test:test_support",
"//components/feature_engagement/public",
"//components/user_education/common",
"//components/user_education/webui",
"//components/user_education/webui:test_support",
"//content/test:test_support",
"//mojo/public/cpp/bindings",
"//testing/gmock",
"//testing/gtest",
]
}
}
if (!is_android && !is_chromeos) {
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "whats_new_fetcher_browsertest.cc" ]
deps = [
":whats_new",
"//base",
"//base/test:test_support",
"//chrome/browser:browser_process",
"//chrome/browser:global_features",
"//chrome/common:version_header",
"//chrome/test:test_support_ui",
"//components/user_education/common",
"//components/user_education/webui",
"//content/test:test_support",
"//testing/gtest",
]
}
}
|