mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-04 19:26:09 +03:00
325 lines
9.8 KiB
Plaintext
325 lines
9.8 KiB
Plaintext
|
# 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("ntp") {
|
||
|
sources = [
|
||
|
"incognito_view_controller_delegate.h",
|
||
|
"new_tab_page_header_constants.h",
|
||
|
"new_tab_page_header_constants.mm",
|
||
|
"new_tab_page_panel_protocol.h",
|
||
|
]
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
}
|
||
|
|
||
|
source_set("ntp_header") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
sources = [
|
||
|
"new_tab_page_header_view.h",
|
||
|
"new_tab_page_header_view.mm",
|
||
|
"new_tab_page_toolbar_controller.h",
|
||
|
"new_tab_page_toolbar_controller.mm",
|
||
|
]
|
||
|
deps = [
|
||
|
":ntp",
|
||
|
"//base",
|
||
|
"//components/ntp_tiles",
|
||
|
"//components/strings",
|
||
|
"//components/toolbar",
|
||
|
"//ios/chrome/app/theme",
|
||
|
"//ios/chrome/browser/tabs",
|
||
|
"//ios/chrome/browser/ui",
|
||
|
"//ios/chrome/browser/ui/commands",
|
||
|
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_util",
|
||
|
"//ios/chrome/browser/ui/favicon:favicon_ui",
|
||
|
"//ios/chrome/browser/ui/toolbar",
|
||
|
"//ios/chrome/browser/ui/toolbar:resource_macros",
|
||
|
"//ios/chrome/browser/ui/toolbar/public",
|
||
|
"//ios/chrome/browser/ui/toolbar/public:toolbar_base_feature",
|
||
|
"//ios/chrome/common",
|
||
|
"//ui/base",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("ntp_controller") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
sources = [
|
||
|
"new_tab_page_controller.h",
|
||
|
"new_tab_page_controller.mm",
|
||
|
]
|
||
|
deps = [
|
||
|
":modal_ntp",
|
||
|
":ntp",
|
||
|
":ntp_internal",
|
||
|
"//base",
|
||
|
"//components/prefs",
|
||
|
"//components/search_engines",
|
||
|
"//components/strings",
|
||
|
"//components/sync_sessions",
|
||
|
"//ios/chrome/app/strings",
|
||
|
"//ios/chrome/browser",
|
||
|
"//ios/chrome/browser/browser_state",
|
||
|
"//ios/chrome/browser/content_suggestions",
|
||
|
"//ios/chrome/browser/search_engines",
|
||
|
"//ios/chrome/browser/sync",
|
||
|
"//ios/chrome/browser/tabs",
|
||
|
"//ios/chrome/browser/ui",
|
||
|
"//ios/chrome/browser/ui:notifications",
|
||
|
"//ios/chrome/browser/ui/bookmarks",
|
||
|
"//ios/chrome/browser/ui/commands",
|
||
|
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
|
||
|
"//ios/chrome/browser/ui/ntp/recent_tabs",
|
||
|
"//ios/chrome/browser/ui/toolbar",
|
||
|
"//ios/public/provider/chrome/browser/voice",
|
||
|
"//ui/base",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("ntp_internal") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
sources = [
|
||
|
"centering_scrollview.h",
|
||
|
"centering_scrollview.mm",
|
||
|
"google_landing_consumer.h",
|
||
|
"google_landing_mediator.h",
|
||
|
"google_landing_mediator.mm",
|
||
|
"incognito_view.h",
|
||
|
"incognito_view.mm",
|
||
|
"incognito_view_controller.h",
|
||
|
"incognito_view_controller.mm",
|
||
|
"metrics.h",
|
||
|
"metrics.mm",
|
||
|
"new_tab_page_bar.h",
|
||
|
"new_tab_page_bar.mm",
|
||
|
"new_tab_page_bar_button.h",
|
||
|
"new_tab_page_bar_button.mm",
|
||
|
"new_tab_page_bar_item.h",
|
||
|
"new_tab_page_bar_item.mm",
|
||
|
"new_tab_page_panel_protocol.mm",
|
||
|
"new_tab_page_view.h",
|
||
|
"new_tab_page_view.mm",
|
||
|
"notification_promo_whats_new.h",
|
||
|
"notification_promo_whats_new.mm",
|
||
|
"ntp_tile_saver.h",
|
||
|
"ntp_tile_saver.mm",
|
||
|
]
|
||
|
public_deps = [
|
||
|
":ntp_header",
|
||
|
]
|
||
|
deps = [
|
||
|
":modal_ntp",
|
||
|
":ntp",
|
||
|
":ntp_tile",
|
||
|
"resources:bookmarks_bar_bg",
|
||
|
"resources:bookmarks_bar_bg_pressed",
|
||
|
"resources:bookmarks_bar_breadcrumb",
|
||
|
"resources:bookmarks_bar_edit",
|
||
|
"resources:bookmarks_bar_edit_moreshadow",
|
||
|
"resources:bookmarks_bar_edit_pressed",
|
||
|
"resources:bookmarks_bar_edit_pressed_moreshadow",
|
||
|
"resources:bookmarks_bar_left",
|
||
|
"resources:bookmarks_button_bg",
|
||
|
"resources:bookmarks_button_border",
|
||
|
"resources:disclosure_open",
|
||
|
"resources:incognito_icon",
|
||
|
"resources:ntp_bookmarks",
|
||
|
"resources:ntp_bottom_bar_shadow",
|
||
|
"resources:ntp_delete_button",
|
||
|
"resources:ntp_google_search_box",
|
||
|
"resources:ntp_incognito",
|
||
|
"resources:ntp_mv_placeholder_bg",
|
||
|
"resources:ntp_mv_recentbar",
|
||
|
"resources:ntp_mv_recentpress",
|
||
|
"resources:ntp_mv_search",
|
||
|
"resources:ntp_mv_thumbnail_container",
|
||
|
"resources:ntp_mv_thumbnail_empty",
|
||
|
"resources:ntp_mv_welcome_favicon",
|
||
|
"resources:ntp_opentabs",
|
||
|
"resources:ntp_opentabs_clock",
|
||
|
"resources:ntp_opentabs_header",
|
||
|
"resources:ntp_opentabs_laptop",
|
||
|
"resources:ntp_opentabs_last_row",
|
||
|
"resources:ntp_opentabs_last_row_h",
|
||
|
"resources:ntp_opentabs_list_item",
|
||
|
"resources:ntp_opentabs_list_item_h",
|
||
|
"resources:ntp_opentabs_phone",
|
||
|
"resources:ntp_opentabs_recent_arrow",
|
||
|
"resources:ntp_opentabs_tablet",
|
||
|
"resources:ntp_recently_closed",
|
||
|
"//base",
|
||
|
"//base:i18n",
|
||
|
"//components/favicon/core",
|
||
|
"//components/favicon_base",
|
||
|
"//components/google/core/browser",
|
||
|
"//components/history/core/browser",
|
||
|
"//components/keyed_service/core",
|
||
|
"//components/metrics",
|
||
|
"//components/ntp_tiles",
|
||
|
"//components/rappor",
|
||
|
"//components/search_engines",
|
||
|
"//components/strings",
|
||
|
"//components/suggestions",
|
||
|
"//ios/chrome/app/strings",
|
||
|
"//ios/chrome/browser",
|
||
|
"//ios/chrome/browser/bookmarks:features",
|
||
|
"//ios/chrome/browser/browser_state",
|
||
|
"//ios/chrome/browser/favicon",
|
||
|
"//ios/chrome/browser/history",
|
||
|
"//ios/chrome/browser/metrics:metrics_internal",
|
||
|
"//ios/chrome/browser/ntp_tiles",
|
||
|
"//ios/chrome/browser/reading_list",
|
||
|
"//ios/chrome/browser/search_engines",
|
||
|
"//ios/chrome/browser/suggestions",
|
||
|
"//ios/chrome/browser/tabs",
|
||
|
"//ios/chrome/browser/ui",
|
||
|
"//ios/chrome/browser/ui:notifications",
|
||
|
"//ios/chrome/browser/ui/bookmarks",
|
||
|
"//ios/chrome/browser/ui/commands",
|
||
|
"//ios/chrome/browser/ui/content_suggestions",
|
||
|
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
|
||
|
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_util",
|
||
|
"//ios/chrome/browser/ui/content_suggestions/cells",
|
||
|
"//ios/chrome/browser/ui/context_menu",
|
||
|
"//ios/chrome/browser/ui/favicon",
|
||
|
"//ios/chrome/browser/ui/favicon:favicon_ui",
|
||
|
"//ios/chrome/browser/ui/overscroll_actions",
|
||
|
"//ios/chrome/browser/ui/toolbar",
|
||
|
"//ios/chrome/browser/web_state_list",
|
||
|
"//ios/chrome/common",
|
||
|
"//ios/chrome/common/app_group",
|
||
|
"//ios/public/provider/chrome/browser",
|
||
|
"//ios/public/provider/chrome/browser/images",
|
||
|
"//ios/public/provider/chrome/browser/ui",
|
||
|
"//ios/public/provider/chrome/browser/voice",
|
||
|
"//ios/third_party/material_components_ios",
|
||
|
"//ios/third_party/material_roboto_font_loader_ios",
|
||
|
"//ios/web",
|
||
|
"//net",
|
||
|
"//skia",
|
||
|
"//ui/base",
|
||
|
"//ui/gfx",
|
||
|
"//url",
|
||
|
]
|
||
|
libs = [
|
||
|
"CoreGraphics.framework",
|
||
|
"QuartzCore.framework",
|
||
|
"UIKit.framework",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("ntp_tile") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
sources = [
|
||
|
"ntp_tile.h",
|
||
|
"ntp_tile.mm",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
# TODO(crbug.com/768817): Remove the following once new bookmarks are enabled by
|
||
|
# default.
|
||
|
source_set("modal_ntp") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
sources = [
|
||
|
"modal_ntp.h",
|
||
|
"modal_ntp.mm",
|
||
|
]
|
||
|
deps = [
|
||
|
"//ios/chrome/browser/bookmarks:features",
|
||
|
"//ios/chrome/browser/ui:ui_util",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("unit_tests") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
testonly = true
|
||
|
sources = [
|
||
|
"centering_scrollview_unittest.mm",
|
||
|
"new_tab_page_bar_unittest.mm",
|
||
|
"new_tab_page_controller_unittest.mm",
|
||
|
"notification_promo_whats_new_unittest.mm",
|
||
|
"ntp_tile_saver_unittest.mm",
|
||
|
]
|
||
|
deps = [
|
||
|
":modal_ntp",
|
||
|
":ntp",
|
||
|
":ntp_controller",
|
||
|
":ntp_internal",
|
||
|
":ntp_tile",
|
||
|
"//base",
|
||
|
"//base/test:test_support",
|
||
|
"//components/bookmarks/test",
|
||
|
"//components/metrics",
|
||
|
"//components/ntp_tiles",
|
||
|
"//components/prefs:test_support",
|
||
|
"//components/search_engines",
|
||
|
"//components/sessions",
|
||
|
"//components/variations",
|
||
|
"//ios/chrome/app/strings",
|
||
|
"//ios/chrome/browser",
|
||
|
"//ios/chrome/browser/bookmarks",
|
||
|
"//ios/chrome/browser/bookmarks:features",
|
||
|
"//ios/chrome/browser/browser_state:test_support",
|
||
|
"//ios/chrome/browser/favicon",
|
||
|
"//ios/chrome/browser/search_engines",
|
||
|
"//ios/chrome/browser/sessions",
|
||
|
"//ios/chrome/browser/sessions:test_support",
|
||
|
"//ios/chrome/browser/tabs",
|
||
|
"//ios/chrome/browser/ui",
|
||
|
"//ios/chrome/browser/ui/commands",
|
||
|
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
|
||
|
"//ios/chrome/browser/ui/favicon",
|
||
|
"//ios/chrome/browser/ui/favicon:favicon_ui",
|
||
|
"//ios/chrome/browser/web_state_list:test_support",
|
||
|
"//ios/chrome/browser/web_state_list:web_state_list",
|
||
|
"//ios/chrome/test:test_support",
|
||
|
"//ios/public/provider/chrome/browser/images",
|
||
|
"//ios/web/public/test",
|
||
|
"//testing/gtest",
|
||
|
"//third_party/ocmock",
|
||
|
"//ui/base",
|
||
|
"//url",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("eg_tests") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
testonly = true
|
||
|
sources = [
|
||
|
"new_tab_page_egtest.mm",
|
||
|
]
|
||
|
deps = [
|
||
|
":modal_ntp",
|
||
|
":ntp_controller",
|
||
|
"//components/strings",
|
||
|
"//ios/chrome/app/strings",
|
||
|
"//ios/chrome/browser",
|
||
|
"//ios/chrome/browser/bookmarks:features",
|
||
|
"//ios/chrome/browser/ui",
|
||
|
"//ios/chrome/browser/ui/commands",
|
||
|
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
|
||
|
"//ios/chrome/test/app:test_support",
|
||
|
"//ios/chrome/test/earl_grey:test_support",
|
||
|
"//ios/testing:ios_test_support",
|
||
|
"//ios/testing/earl_grey:earl_grey_support",
|
||
|
"//ios/third_party/earl_grey:earl_grey+link",
|
||
|
"//ui/base",
|
||
|
]
|
||
|
libs = [ "XCTest.framework" ]
|
||
|
}
|
||
|
|
||
|
source_set("perf_tests") {
|
||
|
configs += [ "//build/config/compiler:enable_arc" ]
|
||
|
testonly = true
|
||
|
sources = [
|
||
|
"new_tab_page_perftest.mm",
|
||
|
]
|
||
|
deps = [
|
||
|
"//base/test:test_support",
|
||
|
"//ios/chrome/browser/sessions",
|
||
|
"//ios/chrome/browser/tabs",
|
||
|
"//ios/chrome/browser/test:perf_test_support",
|
||
|
"//ios/chrome/browser/ui:ui_internal",
|
||
|
"//ios/chrome/browser/ui/commands",
|
||
|
]
|
||
|
}
|