| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("tab_grid") { |
| sources = [ |
| "tab_grid_coordinator.h", |
| "tab_grid_coordinator.mm", |
| "tab_grid_mediator.h", |
| "tab_grid_mediator.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":tab_grid_ui", |
| "//base", |
| "//ios/chrome/browser/browser_state", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/clean/chrome/browser", |
| "//ios/clean/chrome/browser/ui/commands", |
| "//ios/clean/chrome/browser/ui/context_menu", |
| "//ios/clean/chrome/browser/ui/settings", |
| "//ios/clean/chrome/browser/ui/tab", |
| "//ios/clean/chrome/browser/ui/tab_collection", |
| "//ios/clean/chrome/browser/ui/tab_collection:tab_collection_ui", |
| "//ios/clean/chrome/browser/ui/tools", |
| "//ios/shared/chrome/browser/ui/browser_list", |
| "//ios/shared/chrome/browser/ui/commands", |
| "//ios/shared/chrome/browser/ui/coordinators", |
| "//ios/shared/chrome/browser/ui/tools_menu", |
| "//ios/web", |
| "//net", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("tab_grid_ui") { |
| sources = [ |
| "mdc_floating_button+cr_tab_grid.h", |
| "mdc_floating_button+cr_tab_grid.mm", |
| "tab_grid_collection_view_layout.h", |
| "tab_grid_collection_view_layout.mm", |
| "tab_grid_consumer.h", |
| "tab_grid_toolbar.h", |
| "tab_grid_toolbar.mm", |
| "tab_grid_view_controller.h", |
| "tab_grid_view_controller.mm", |
| "ui_button+cr_tab_grid.h", |
| "ui_button+cr_tab_grid.mm", |
| "ui_stack_view+cr_tab_grid.h", |
| "ui_stack_view+cr_tab_grid.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| "//base", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui", |
| "//ios/chrome/browser/ui/colors", |
| "//ios/chrome/browser/ui/tab_switcher", |
| "//ios/clean/chrome/browser/ui/actions", |
| "//ios/clean/chrome/browser/ui/animators", |
| "//ios/clean/chrome/browser/ui/commands", |
| "//ios/clean/chrome/browser/ui/tab_collection:tab_collection_ui", |
| "//ios/third_party/material_components_ios:material_components_ios", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "tab_grid_mediator_unittest.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":tab_grid", |
| ":tab_grid_ui", |
| "//base", |
| "//base/test:test_support", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/browser/web_state_list:test_support", |
| "//ios/chrome/test/base", |
| "//ios/web/public/test/fakes", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |