| 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/bookmarks_bar_bg.png", | 7 "resources/bookmarks_bar_bg.png", |
| 8 "resources/bookmarks_bar_bg@2x.png", | 8 "resources/bookmarks_bar_bg@2x.png", |
| 9 "resources/bookmarks_bar_bg@2x~ipad.png", | 9 "resources/bookmarks_bar_bg@2x~ipad.png", |
| 10 "resources/bookmarks_bar_bg_pressed@2x~ipad.png", | 10 "resources/bookmarks_bar_bg_pressed@2x~ipad.png", |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 "resources/ntp_opentabs_tablet@2x.png", | 93 "resources/ntp_opentabs_tablet@2x.png", |
| 94 "resources/ntp_opentabs_tablet@3x.png", | 94 "resources/ntp_opentabs_tablet@3x.png", |
| 95 "resources/ntp_recently_closed.png", | 95 "resources/ntp_recently_closed.png", |
| 96 "resources/ntp_recently_closed@2x.png", | 96 "resources/ntp_recently_closed@2x.png", |
| 97 "resources/ntp_recently_closed@3x.png", | 97 "resources/ntp_recently_closed@3x.png", |
| 98 ] | 98 ] |
| 99 outputs = [ | 99 outputs = [ |
| 100 "{{bundle_resources_dir}}/{{source_file_part}}", | 100 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 101 ] | 101 ] |
| 102 } | 102 } |
| 103 | |
| 104 source_set("ntp") { | |
| 105 sources = [ | |
| 106 "new_tab_page_panel_protocol.h", | |
| 107 ] | |
| 108 } | |
| 109 | |
| 110 source_set("ntp_internal") { | |
| 111 sources = [ | |
| 112 "centering_scrollview.h", | |
| 113 "centering_scrollview.mm", | |
| 114 "google_landing_controller.h", | |
| 115 "google_landing_controller.mm", | |
| 116 "incognito_panel_controller.h", | |
| 117 "incognito_panel_controller.mm", | |
| 118 "most_visited_cell.h", | |
| 119 "most_visited_cell.mm", | |
| 120 "most_visited_layout.h", | |
| 121 "most_visited_layout.mm", | |
| 122 "new_tab_page_bar.h", | |
| 123 "new_tab_page_bar.mm", | |
| 124 "new_tab_page_bar_button.h", | |
| 125 "new_tab_page_bar_button.mm", | |
| 126 "new_tab_page_bar_item.h", | |
| 127 "new_tab_page_bar_item.mm", | |
| 128 "new_tab_page_controller.h", | |
| 129 "new_tab_page_controller.mm", | |
| 130 "new_tab_page_header_constants.h", | |
| 131 "new_tab_page_header_constants.mm", | |
| 132 "new_tab_page_header_view.h", | |
| 133 "new_tab_page_header_view.mm", | |
| 134 "new_tab_page_panel_protocol.mm", | |
| 135 "new_tab_page_toolbar_controller.h", | |
| 136 "new_tab_page_toolbar_controller.mm", | |
| 137 "new_tab_page_view.h", | |
| 138 "new_tab_page_view.mm", | |
| 139 "notification_promo_whats_new.h", | |
| 140 "notification_promo_whats_new.mm", | |
| 141 "whats_new_header_view.h", | |
| 142 "whats_new_header_view.mm", | |
| 143 ] | |
| 144 deps = [ | |
| 145 ":ntp", | |
| 146 "//base", | |
| 147 "//base:i18n", | |
| 148 "//components/favicon/core", | |
| 149 "//components/favicon_base", | |
| 150 "//components/google/core/browser", | |
| 151 "//components/history/core/browser", | |
| 152 "//components/keyed_service/core", | |
| 153 "//components/metrics", | |
| 154 "//components/ntp_tiles", | |
| 155 "//components/prefs", | |
| 156 "//components/rappor", | |
| 157 "//components/reading_list/core", | |
| 158 "//components/search_engines", | |
| 159 "//components/strings", | |
| 160 "//components/suggestions", | |
| 161 "//components/sync_sessions", | |
| 162 "//components/toolbar", | |
| 163 "//ios/chrome/app/strings", | |
| 164 "//ios/chrome/app/theme", | |
| 165 "//ios/chrome/browser", | |
| 166 "//ios/chrome/browser/browser_state", | |
| 167 "//ios/chrome/browser/favicon", | |
| 168 "//ios/chrome/browser/history", | |
| 169 "//ios/chrome/browser/metrics:metrics_internal", | |
| 170 "//ios/chrome/browser/ntp_tiles", | |
| 171 "//ios/chrome/browser/reading_list", | |
| 172 "//ios/chrome/browser/search_engines", | |
| 173 "//ios/chrome/browser/suggestions", | |
| 174 "//ios/chrome/browser/sync", | |
| 175 "//ios/chrome/browser/tabs", | |
| 176 "//ios/chrome/browser/ui", | |
| 177 "//ios/chrome/browser/ui/bookmarks", | |
| 178 "//ios/chrome/browser/ui/commands", | |
| 179 "//ios/chrome/browser/ui/context_menu", | |
| 180 "//ios/chrome/browser/ui/ntp:resources", | |
| 181 "//ios/chrome/browser/ui/ntp/recent_tabs", | |
| 182 "//ios/chrome/browser/ui/overscroll_actions", | |
| 183 "//ios/chrome/browser/ui/toolbar", | |
| 184 "//ios/chrome/browser/ui/toolbar:resource_macros", | |
| 185 "//ios/chrome/common", | |
| 186 "//ios/public/provider/chrome/browser", | |
| 187 "//ios/public/provider/chrome/browser/images", | |
| 188 "//ios/public/provider/chrome/browser/ui", | |
| 189 "//ios/public/provider/chrome/browser/voice", | |
| 190 "//ios/third_party/material_components_ios", | |
| 191 "//ios/third_party/material_roboto_font_loader_ios", | |
| 192 "//ios/web", | |
| 193 "//net", | |
| 194 "//skia", | |
| 195 "//ui/base", | |
| 196 "//ui/gfx", | |
| 197 "//url", | |
| 198 ] | |
| 199 libs = [ | |
| 200 "CoreGraphics.framework", | |
| 201 "QuartzCore.framework", | |
| 202 "UIKit.framework", | |
| 203 ] | |
| 204 } | |
| 205 | |
| 206 source_set("unit_tests") { | |
| 207 testonly = true | |
| 208 sources = [ | |
| 209 "centering_scrollview_unittest.mm", | |
| 210 "google_landing_controller_unittest.mm", | |
| 211 "most_visited_cell_unittest.mm", | |
| 212 "new_tab_page_bar_unittest.mm", | |
| 213 "new_tab_page_controller_unittest.mm", | |
| 214 "notification_promo_whats_new_unittest.mm", | |
| 215 ] | |
| 216 deps = [ | |
| 217 ":ntp", | |
| 218 ":ntp_internal", | |
| 219 "//base", | |
| 220 "//base/test:test_support", | |
| 221 "//components/bookmarks/test", | |
| 222 "//components/metrics", | |
| 223 "//components/prefs:test_support", | |
| 224 "//components/search_engines", | |
| 225 "//components/sessions", | |
| 226 "//components/variations", | |
| 227 "//ios/chrome/app/strings", | |
| 228 "//ios/chrome/browser", | |
| 229 "//ios/chrome/browser/bookmarks", | |
| 230 "//ios/chrome/browser/browser_state:test_support", | |
| 231 "//ios/chrome/browser/search_engines", | |
| 232 "//ios/chrome/browser/sessions", | |
| 233 "//ios/chrome/browser/ui", | |
| 234 "//ios/chrome/browser/ui/commands", | |
| 235 "//ios/chrome/test:test_support", | |
| 236 "//ios/public/provider/chrome/browser/images", | |
| 237 "//ios/web:test_support", | |
| 238 "//testing/gtest", | |
| 239 "//third_party/ocmock", | |
| 240 "//ui/base", | |
| 241 "//url", | |
| 242 ] | |
| 243 } | |
| 244 | |
| 245 source_set("eg_tests") { | |
| 246 testonly = true | |
| 247 sources = [ | |
| 248 "new_tab_page_egtest.mm", | |
| 249 ] | |
| 250 deps = [ | |
| 251 "//components/strings", | |
| 252 "//ios/chrome/app/strings", | |
| 253 "//ios/chrome/browser/ui", | |
| 254 "//ios/chrome/browser/ui/commands", | |
| 255 "//ios/chrome/browser/ui/ntp:ntp_internal", | |
| 256 "//ios/chrome/test/app:test_support", | |
| 257 "//ios/chrome/test/earl_grey:test_support", | |
| 258 "//ios/testing:ios_test_support", | |
| 259 "//ios/testing/earl_grey:earl_grey_support", | |
| 260 "//ios/third_party/earl_grey", | |
| 261 "//ui/base", | |
| 262 ] | |
| 263 libs = [ "XCTest.framework" ] | |
| 264 } | |
| 265 | |
| 266 source_set("perf_tests") { | |
| 267 testonly = true | |
| 268 sources = [ | |
| 269 "new_tab_page_perftest.mm", | |
| 270 ] | |
| 271 deps = [ | |
| 272 "//base/test:test_support", | |
| 273 "//ios/chrome/browser/sessions", | |
| 274 "//ios/chrome/browser/tabs", | |
| 275 "//ios/chrome/browser/test:perf_test_support", | |
| 276 "//ios/chrome/browser/ui:ui_internal", | |
| 277 ] | |
| 278 } | |
| OLD | NEW |