# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("regular") {
sources = [
"regular_grid_coordinator.h",
"regular_grid_coordinator.mm",
"regular_grid_mediator.h",
"regular_grid_mediator.mm",
]
deps = [
":regular_ui",
"//base",
"//components/sessions",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
"//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/shared/public/features",
"//ios/chrome/browser/snapshots/model",
"//ios/chrome/browser/tabs/model",
"//ios/chrome/browser/ui/tab_switcher",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_idle_status_handler",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_metrics",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_mode",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_paging",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_ui_constants",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_consumer",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_mediator",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_toolbars_configuration_provider",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_toolbars_mutator",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:tab_group_grid_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/pinned_tabs",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/pinned_tabs:pinned_tabs_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/tab_context_menu",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/tab_groups",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/tab_groups:tab_groups_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars",
"//ios/web/public",
]
}
source_set("regular_ui") {
sources = [
"inactive_tabs_button_cell.h",
"inactive_tabs_button_cell.mm",
"regular_grid_view_controller.h",
"regular_grid_view_controller.mm",
"tabs_closure_animation.h",
"tabs_closure_animation.mm",
]
deps = [
"//base",
"//components/tab_groups",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/tabs/model/inactive_tabs:features",
"//ios/chrome/browser/ui/tab_switcher:items",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_item_identifier",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui_constants",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/inactive_tabs:inactive_tabs_button_ui",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/inactive_tabs:inactive_tabs_button_ui_swift",
"//ios/chrome/common:timing",
"//ios/chrome/common/ui/colors",
"//ios/web/public",
"//ui/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "regular_grid_mediator_unittest.mm" ]
deps = [
":regular",
"//base",
"//components/policy/core/common:common_constants",
"//components/sessions",
"//components/sync_preferences:test_support",
"//ios/chrome/browser/history/model",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/sessions/model",
"//ios/chrome/browser/shared/model/browser/test:test_support",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_mode",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:test_fixture",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/toolbars/test:fakes",
"//ios/chrome/browser/ui/tab_switcher/test:fakes",
"//ios/web/public/test/fakes",
]
}