# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//ios/public/provider/chrome/browser/build_config.gni")
source_set("tab_switcher") {
sources = [
"pinned_tab_collection_consumer.h",
"tab_collection_consumer.h",
"tab_collection_drag_drop_handler.h",
"tab_collection_drag_drop_metrics.h",
"tab_collection_drag_drop_metrics.mm",
]
}
source_set("items") {
sources = [
"tab_group_item.h",
"tab_group_item.mm",
"tab_switcher_item.h",
"tab_switcher_item.mm",
"web_state_tab_switcher_item.h",
"web_state_tab_switcher_item.mm",
]
deps = [
"//base",
"//components/favicon/ios",
"//ios/chrome/browser/shared/model/url",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/snapshots/model",
"//ios/chrome/browser/tabs/model",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:group_tab_info",
"//ios/web/public",
"//url",
]
}
source_set("tab_group_confirmation") {
sources = [
"tab_group_action_type.h",
"tab_group_confirmation_coordinator.h",
"tab_group_confirmation_coordinator.mm",
]
public_deps = [ "//ios/chrome/browser/shared/coordinator/chrome_coordinator" ]
deps = [
"//base",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/coordinator/alert",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/signin/model",
"//ui/base",
]
}
source_set("utils") {
sources = [
"item_utils.h",
"item_utils.mm",
"tab_group_utils.h",
"tab_group_utils.mm",
"tab_utils.h",
"tab_utils.mm",
]
deps = [
":items",
"//base",
"//components/favicon/ios",
"//components/tab_groups",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/url",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/model/web_state_list:utils",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/snapshots/model",
"//ios/chrome/browser/tabs/model",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_item_identifier",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:group_tab_info",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/tab_context_menu:tab_item",
"//ios/chrome/common/ui/colors",
"//ios/web/public",
]
allow_circular_includes_from = [
":items",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_item_identifier",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "tab_utils_unittest.mm" ]
deps = [
":utils",
"//ios/chrome/browser/shared/model/browser",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/snapshots/model",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
]
}