# 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("toolbars") {
sources = [
"tab_grid_toolbars_configuration.h",
"tab_grid_toolbars_configuration.mm",
"tab_grid_toolbars_coordinator.h",
"tab_grid_toolbars_coordinator.mm",
"tab_grid_toolbars_mediator.h",
"tab_grid_toolbars_mediator.mm",
]
deps = [
":toolbars_ui",
"//base",
"//components/feature_engagement/public",
"//ios/chrome/app/strings",
"//ios/chrome/browser/bubble/ui_bundled",
"//ios/chrome/browser/feature_engagement/model",
"//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/ui/menu",
"//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/grid:grid_toolbars_mutator",
"//ui/base",
]
}
source_set("toolbars_ui") {
sources = [
"tab_grid_bottom_toolbar.h",
"tab_grid_bottom_toolbar.mm",
"tab_grid_new_tab_button.h",
"tab_grid_new_tab_button.mm",
"tab_grid_page_control.h",
"tab_grid_page_control.mm",
"tab_grid_toolbars_grid_delegate.h",
"tab_grid_toolbars_main_tab_grid_delegate.h",
"tab_grid_toolbars_utils.h",
"tab_grid_toolbars_utils.mm",
"tab_grid_top_toolbar.h",
"tab_grid_top_toolbar.mm",
]
deps = [
"//base",
"//ios/chrome/app/strings",
"//ios/chrome/browser/keyboard/ui_bundled",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/shared/ui/util",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_paging",
"//ios/chrome/browser/ui/tab_switcher/tab_grid:tab_grid_ui_constants",
"//ios/chrome/browser/ui/tab_switcher/tab_grid/grid:grid_ui_constants",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/util",
"//ios/public/provider/chrome/browser/raccoon:raccoon_api",
"//ui/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "tab_grid_toolbars_view_controllers_unittest.mm" ]
deps = [
":toolbars_ui",
"//base/test:test_support",
"//ios/chrome/app/strings",
"//testing/gtest",
"//ui/base",
]
}