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 149 150 151 152 153 154 155 156
|
# 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)
source_set("bookmarks") {
sources = [
"bookmark_bar.h",
"bookmark_context_menu_controller.h",
"bookmark_drag_drop.h",
"bookmark_editor.h",
"bookmark_stats.h",
"bookmark_stats_tab_helper.h",
"bookmark_tab_helper.h",
"bookmark_tab_helper_observer.h",
"bookmark_ui_operations_helper.h",
"bookmark_utils.h",
"bookmark_utils_desktop.h",
"recently_used_folders_combo_model.h",
"test_bookmark_navigation_wrapper.h",
]
public_deps = [
"//base",
"//components/bookmarks/browser",
"//components/page_load_metrics/browser",
"//components/profile_metrics",
"//components/tab_groups",
"//content/public/browser",
"//skia",
"//ui/base",
"//ui/base/dragdrop/mojom",
"//ui/gfx",
"//ui/gfx/geometry",
"//ui/menus",
"//url",
]
}
source_set("impl") {
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
sources = [
"bookmark_context_menu_controller.cc",
"bookmark_drag_drop.cc",
"bookmark_editor.cc",
"bookmark_stats.cc",
"bookmark_stats_tab_helper.cc",
"bookmark_tab_helper.cc",
"bookmark_ui_operations_helper.cc",
"bookmark_utils.cc",
"bookmark_utils_desktop.cc",
"recently_used_folders_combo_model.cc",
"test_bookmark_navigation_wrapper.cc",
]
deps = [
":bookmarks",
"//chrome/app:command_ids",
"//chrome/browser/prefs",
"//chrome/browser/profiles:profile",
"//chrome/browser/search",
"//chrome/browser/ui:browser_navigator_params_headers",
"//chrome/browser/ui:ui_features",
"//chrome/browser/ui/tabs:tab_group",
"//chrome/browser/ui/tabs:tab_strip",
"//components/bookmarks/browser",
"//components/bookmarks/common",
"//components/bookmarks/managed",
"//components/saved_tab_groups/public:features",
"//components/search",
"//components/sync_preferences",
"//components/tab_groups",
"//components/undo",
"//components/user_prefs",
]
if (is_mac) {
deps += [ "//chrome/browser/web_applications" ]
}
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [ "bookmark_browsertest.cc" ]
deps = [
":bookmarks",
"//base",
"//base/test:test_support",
"//chrome/app:command_ids",
"//chrome/browser",
"//chrome/browser:browser_process",
"//chrome/browser:primitives",
"//chrome/browser:test_support",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui",
"//chrome/browser/ui:browser_list",
"//chrome/browser/ui/tabs:tab_strip",
"//chrome/common",
"//chrome/test:test_support_ui",
"//components/bookmarks/browser",
"//components/bookmarks/test",
"//components/security_interstitials/content:security_interstitial_page",
"//content/public/browser",
"//content/test:test_support",
"//net:test_support",
"//testing/gmock",
"//ui/base",
"//ui/base:features",
"//ui/base/dragdrop/mojom",
"//ui/gfx",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"bookmark_context_menu_controller_unittest.cc",
"bookmark_editor_unittest.cc",
"bookmark_stats_tab_helper_unittest.cc",
"bookmark_ui_operations_helper_unittest.cc",
"bookmark_ui_utils_desktop_unittest.cc",
"bookmark_unittest.cc",
"bookmark_utils_unittest.cc",
"recently_used_folders_combo_model_unittest.cc",
]
deps = [
":bookmarks",
"//base",
"//base/test:test_support",
"//chrome/app:command_ids",
"//chrome/browser",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui:ui_features",
"//chrome/common",
"//chrome/test:test_support",
"//components/bookmarks/browser",
"//components/bookmarks/common",
"//components/bookmarks/managed",
"//components/bookmarks/test",
"//components/dom_distiller/core",
"//components/saved_tab_groups/public:features",
"//components/sync_preferences:test_support",
"//content/public/browser",
"//content/test:test_support",
"//testing/gtest",
"//ui/base",
"//ui/base/clipboard",
"//ui/base/clipboard:clipboard_test_support",
"//url",
]
}
|