| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 bundle_data("resources") { | 5 bundle_data("resources") { |
| 6 sources = [ | 6 sources = [ |
| 7 "resources/tabstrip_background_tab@2x~ipad.png", | 7 "resources/tabstrip_background_tab@2x~ipad.png", |
| 8 "resources/tabstrip_background_tab~ipad.png", | 8 "resources/tabstrip_background_tab~ipad.png", |
| 9 "resources/tabstrip_foreground_tab@2x~ipad.png", | 9 "resources/tabstrip_foreground_tab@2x~ipad.png", |
| 10 "resources/tabstrip_foreground_tab~ipad.png", | 10 "resources/tabstrip_foreground_tab~ipad.png", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 "resources/tabstrip_tab_close_pressed~ipad.png", | 33 "resources/tabstrip_tab_close_pressed~ipad.png", |
| 34 "resources/tabstrip_tab_close~ipad.png", | 34 "resources/tabstrip_tab_close~ipad.png", |
| 35 "resources/tabstrip_toggle_button_gradient@2x~ipad.png", | 35 "resources/tabstrip_toggle_button_gradient@2x~ipad.png", |
| 36 "resources/tabstrip_toggle_button_gradient@3x~ipad.png", | 36 "resources/tabstrip_toggle_button_gradient@3x~ipad.png", |
| 37 "resources/tabstrip_toggle_button_gradient~ipad.png", | 37 "resources/tabstrip_toggle_button_gradient~ipad.png", |
| 38 ] | 38 ] |
| 39 outputs = [ | 39 outputs = [ |
| 40 "{{bundle_resources_dir}}/{{source_file_part}}", | 40 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 41 ] | 41 ] |
| 42 } | 42 } |
| 43 | |
| 44 source_set("tabs") { | |
| 45 sources = [ | |
| 46 "tab_strip_controller+tab_switcher_animation.h", | |
| 47 "tab_strip_controller.h", | |
| 48 "tab_strip_controller.mm", | |
| 49 "tab_strip_controller_private.h", | |
| 50 "tab_strip_view.h", | |
| 51 "tab_strip_view.mm", | |
| 52 "tab_util.h", | |
| 53 "tab_util.mm", | |
| 54 "tab_view.h", | |
| 55 "tab_view.mm", | |
| 56 "target_frame_cache.h", | |
| 57 "target_frame_cache.mm", | |
| 58 ] | |
| 59 deps = [ | |
| 60 "//base", | |
| 61 "//base:i18n", | |
| 62 "//ios/chrome/app/strings", | |
| 63 "//ios/chrome/browser", | |
| 64 "//ios/chrome/browser/browser_state", | |
| 65 "//ios/chrome/browser/tabs", | |
| 66 "//ios/chrome/browser/ui", | |
| 67 "//ios/chrome/browser/ui/colors", | |
| 68 "//ios/chrome/browser/ui/commands", | |
| 69 "//ios/chrome/browser/ui/tabs:resources", | |
| 70 "//ios/chrome/browser/ui/util", | |
| 71 "//ios/third_party/material_components_ios", | |
| 72 "//ios/web", | |
| 73 "//third_party/google_toolbox_for_mac", | |
| 74 "//ui/base", | |
| 75 "//ui/gfx", | |
| 76 ] | |
| 77 libs = [ "UIKit.framework" ] | |
| 78 } | |
| 79 | |
| 80 source_set("unit_tests") { | |
| 81 testonly = true | |
| 82 sources = [ | |
| 83 "tab_strip_controller_unittest.mm", | |
| 84 ] | |
| 85 deps = [ | |
| 86 ":tabs", | |
| 87 "//base", | |
| 88 "//ios/chrome/browser/browser_state:test_support", | |
| 89 "//ios/chrome/browser/sessions:test_support", | |
| 90 "//ios/chrome/browser/tabs", | |
| 91 "//ios/chrome/browser/ui", | |
| 92 "//ios/web:test_support", | |
| 93 "//testing/gtest", | |
| 94 "//third_party/ocmock", | |
| 95 ] | |
| 96 } | |
| 97 | |
| 98 source_set("eg_tests") { | |
| 99 testonly = true | |
| 100 sources = [ | |
| 101 "tab_strip_egtest.mm", | |
| 102 ] | |
| 103 deps = [ | |
| 104 "//ios/chrome/app/strings", | |
| 105 "//ios/chrome/browser", | |
| 106 "//ios/chrome/browser/ui", | |
| 107 "//ios/chrome/browser/ui/tabs", | |
| 108 "//ios/chrome/test/app:test_support", | |
| 109 "//ios/chrome/test/earl_grey:test_support", | |
| 110 "//ios/third_party/earl_grey", | |
| 111 "//ui/base", | |
| 112 ] | |
| 113 libs = [ "XCTest.framework" ] | |
| 114 } | |
| OLD | NEW |