# 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("tabs") { sources = [ "legacy_tab_helper.h", "tab.h", "tab_dialog_delegate.h", "tab_helper_util.h", "tab_model.h", "tab_model_list.h", "tab_model_list_observer.h", "tab_model_observer.h", "tab_model_synced_window_delegate.h", "tab_model_synced_window_delegate_getter.h", "tab_private.h", ] public_deps = [ "//ios/web", ] deps = [ "//components/sessions", "//components/signin/ios/browser", "//components/sync_sessions", "//ios/chrome/browser/web:tab_helper_delegates", "//ios/chrome/browser/web_state_list", "//ios/net", "//ios/web/public", "//ui/base", ] libs = [ "UIKit.framework" ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("tabs_internal") { sources = [ "legacy_tab_helper.mm", "tab.h", "tab.mm", "tab_helper_util.mm", "tab_model.mm", "tab_model_closing_web_state_observer.h", "tab_model_closing_web_state_observer.mm", "tab_model_favicon_driver_observer.h", "tab_model_favicon_driver_observer.mm", "tab_model_list.mm", "tab_model_notification_observer.h", "tab_model_notification_observer.mm", "tab_model_observers.h", "tab_model_observers.mm", "tab_model_observers_bridge.h", "tab_model_observers_bridge.mm", "tab_model_selected_tab_observer.h", "tab_model_selected_tab_observer.mm", "tab_model_synced_window_delegate.mm", "tab_model_synced_window_delegate_getter.mm", "tab_model_web_state_list_delegate.h", "tab_model_web_state_list_delegate.mm", "tab_model_web_usage_enabled_observer.h", "tab_model_web_usage_enabled_observer.mm", "tab_parenting_observer.h", "tab_parenting_observer.mm", ] deps = [ ":tabs", "//base", "//components/content_settings/core/browser", "//components/favicon/core", "//components/favicon/ios", "//components/google/core/browser", "//components/history/core/browser", "//components/history/ios/browser", "//components/infobars/core", "//components/keyed_service/core", "//components/language/ios/browser", "//components/metrics_services_manager", "//components/navigation_metrics", "//components/prefs", "//components/reading_list/core", "//components/search_engines", "//components/sessions", "//components/strings", "//components/url_formatter", "//ios/chrome/app/strings", "//ios/chrome/browser", "//ios/chrome/browser/app_launcher", "//ios/chrome/browser/autofill", "//ios/chrome/browser/autofill:autofill_internal", "//ios/chrome/browser/bookmarks", "//ios/chrome/browser/browser_state", "//ios/chrome/browser/content_settings", "//ios/chrome/browser/download:download", "//ios/chrome/browser/favicon", "//ios/chrome/browser/find_in_page", "//ios/chrome/browser/geolocation:geolocation_internal", "//ios/chrome/browser/history", "//ios/chrome/browser/history:tab_helper", "//ios/chrome/browser/infobars", "//ios/chrome/browser/itunes_urls", "//ios/chrome/browser/language", "//ios/chrome/browser/metrics", "//ios/chrome/browser/metrics:metrics_internal", "//ios/chrome/browser/passwords", "//ios/chrome/browser/prerender", "//ios/chrome/browser/reading_list", "//ios/chrome/browser/search_engines", "//ios/chrome/browser/sessions", "//ios/chrome/browser/sessions:serialisation", "//ios/chrome/browser/snapshots", "//ios/chrome/browser/ssl", "//ios/chrome/browser/ssl:feature_flags", "//ios/chrome/browser/store_kit", "//ios/chrome/browser/sync", "//ios/chrome/browser/translate", "//ios/chrome/browser/u2f", "//ios/chrome/browser/ui", "//ios/chrome/browser/ui:feature_flags", "//ios/chrome/browser/ui:ui_internal", "//ios/chrome/browser/ui/alert_coordinator", "//ios/chrome/browser/ui/commands", "//ios/chrome/browser/ui/overscroll_actions", "//ios/chrome/browser/ui/toolbar", "//ios/chrome/browser/ui/util", "//ios/chrome/browser/voice", "//ios/chrome/browser/web", "//ios/chrome/browser/web:feature_flags", "//ios/chrome/browser/web:tab_helper_delegates", "//ios/chrome/browser/web:web_internal", "//ios/chrome/browser/web_state_list", "//ios/net", "//ios/public/provider/chrome/browser", "//ios/web", "//ios/web/public", "//net", "//ui/base", "//url", ] libs = [ "CoreLocation.framework", "Foundation.framework", "UIKit.framework", ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("unit_tests") { testonly = true sources = [ "tab_model_favicon_driver_observer_unittest.mm", "tab_model_list_unittest.mm", "tab_model_unittest.mm", "tab_unittest.mm", ] deps = [ ":tabs", ":tabs_internal", "//base", "//components/bookmarks/test", "//components/favicon/ios", "//components/history/core/browser", "//components/keyed_service/core", "//ios/chrome/browser", "//ios/chrome/browser/bookmarks", "//ios/chrome/browser/browser_state:test_support", "//ios/chrome/browser/history", "//ios/chrome/browser/history:tab_helper", "//ios/chrome/browser/infobars", "//ios/chrome/browser/sessions", "//ios/chrome/browser/sessions:serialisation", "//ios/chrome/browser/sessions:test_support", "//ios/chrome/browser/snapshots", "//ios/chrome/browser/ui:ui_internal", "//ios/chrome/browser/web", "//ios/chrome/browser/web:web_internal", "//ios/chrome/browser/web_state_list", "//ios/chrome/browser/web_state_list:test_support", "//ios/chrome/test:test_support", "//ios/public/provider/chrome/browser", "//ios/public/provider/chrome/browser:test_support", "//ios/testing:ocmock_support", "//ios/web", "//ios/web/public/test", "//ios/web/public/test/fakes", "//net", "//testing/gmock", "//testing/gtest", "//third_party/ocmock", "//ui/base", "//ui/gfx", ] configs += [ "//build/config/compiler:enable_arc" ] }