|  | # 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. | 
|  |  | 
|  | bundle_data("resources") { | 
|  | sources = [ | 
|  | "resources/tabstrip_background_tab@2x~ipad.png", | 
|  | "resources/tabstrip_background_tab~ipad.png", | 
|  | "resources/tabstrip_foreground_tab@2x~ipad.png", | 
|  | "resources/tabstrip_foreground_tab~ipad.png", | 
|  | "resources/tabstrip_incognito_background_tab@2x~ipad.png", | 
|  | "resources/tabstrip_incognito_background_tab~ipad.png", | 
|  | "resources/tabstrip_incognito_foreground_tab@2x~ipad.png", | 
|  | "resources/tabstrip_incognito_foreground_tab~ipad.png", | 
|  | "resources/tabstrip_new_tab@2x~ipad.png", | 
|  | "resources/tabstrip_new_tab_incognito@2x~ipad.png", | 
|  | "resources/tabstrip_new_tab_incognito_pressed@2x~ipad.png", | 
|  | "resources/tabstrip_new_tab_incognito_pressed~ipad.png", | 
|  | "resources/tabstrip_new_tab_incognito~ipad.png", | 
|  | "resources/tabstrip_new_tab_pressed@2x~ipad.png", | 
|  | "resources/tabstrip_new_tab_pressed~ipad.png", | 
|  | "resources/tabstrip_new_tab~ipad.png", | 
|  | "resources/tabstrip_tab_close@2x~ipad.png", | 
|  | "resources/tabstrip_tab_close_incognito@2x~ipad.png", | 
|  | "resources/tabstrip_tab_close_incognito_pressed@2x~ipad.png", | 
|  | "resources/tabstrip_tab_close_incognito_pressed~ipad.png", | 
|  | "resources/tabstrip_tab_close_incognito~ipad.png", | 
|  | "resources/tabstrip_tab_close_pressed@2x~ipad.png", | 
|  | "resources/tabstrip_tab_close_pressed~ipad.png", | 
|  | "resources/tabstrip_tab_close~ipad.png", | 
|  | "resources/tabstrip_toggle_button_gradient@2x~ipad.png", | 
|  | "resources/tabstrip_toggle_button_gradient@3x~ipad.png", | 
|  | "resources/tabstrip_toggle_button_gradient~ipad.png", | 
|  | ] | 
|  | outputs = [ | 
|  | "{{bundle_resources_dir}}/{{source_file_part}}", | 
|  | ] | 
|  | } | 
|  |  | 
|  | source_set("tabs") { | 
|  | sources = [ | 
|  | "tab_strip_controller+tab_switcher_animation.h", | 
|  | "tab_strip_controller.h", | 
|  | "tab_strip_controller.mm", | 
|  | "tab_strip_controller_private.h", | 
|  | "tab_strip_view.h", | 
|  | "tab_strip_view.mm", | 
|  | "tab_view.h", | 
|  | "tab_view.mm", | 
|  | "target_frame_cache.h", | 
|  | "target_frame_cache.mm", | 
|  | ] | 
|  | public_deps = [ | 
|  | "//ios/chrome/browser/tabs", | 
|  | ] | 
|  | deps = [ | 
|  | ":resources", | 
|  | "//base", | 
|  | "//base:i18n", | 
|  | "//ios/chrome/app/strings", | 
|  | "//ios/chrome/browser", | 
|  | "//ios/chrome/browser/browser_state", | 
|  | "//ios/chrome/browser/ui", | 
|  | "//ios/chrome/browser/ui/colors", | 
|  | "//ios/chrome/browser/ui/commands", | 
|  | "//ios/chrome/browser/ui/util", | 
|  | "//ios/third_party/material_components_ios", | 
|  | "//ios/web", | 
|  | "//third_party/google_toolbox_for_mac", | 
|  | "//ui/base", | 
|  | "//ui/gfx", | 
|  | ] | 
|  | libs = [ "UIKit.framework" ] | 
|  | } | 
|  |  | 
|  | source_set("unit_tests") { | 
|  | configs += [ "//build/config/compiler:enable_arc" ] | 
|  | testonly = true | 
|  | sources = [ | 
|  | "tab_strip_controller_unittest.mm", | 
|  | ] | 
|  | deps = [ | 
|  | ":tabs", | 
|  | "//base", | 
|  | "//ios/chrome/browser/browser_state:test_support", | 
|  | "//ios/chrome/browser/sessions:test_support", | 
|  | "//ios/chrome/browser/tabs", | 
|  | "//ios/chrome/browser/ui", | 
|  | "//ios/web/public/test", | 
|  | "//testing/gtest", | 
|  | "//third_party/ocmock", | 
|  | ] | 
|  | } | 
|  |  | 
|  | source_set("eg_tests") { | 
|  | configs += [ "//build/config/compiler:enable_arc" ] | 
|  | testonly = true | 
|  | sources = [ | 
|  | "tab_strip_egtest.mm", | 
|  | ] | 
|  | deps = [ | 
|  | ":tabs", | 
|  | "//ios/chrome/app/strings", | 
|  | "//ios/chrome/browser", | 
|  | "//ios/chrome/browser/ui", | 
|  | "//ios/chrome/test/app:test_support", | 
|  | "//ios/chrome/test/earl_grey:test_support", | 
|  | "//ios/third_party/earl_grey", | 
|  | "//ui/base", | 
|  | ] | 
|  | libs = [ "XCTest.framework" ] | 
|  | } |