blob: af3ff97952e1eec784617182ea6954325e131762 [file] [log] [blame]
# Copyright 2017 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("popup") {
sources = [
"omnibox_popup_coordinator.h",
"omnibox_popup_coordinator.mm",
"omnibox_popup_mediator.h",
"omnibox_popup_mediator.mm",
"omnibox_popup_presenter.h",
"omnibox_popup_presenter.mm",
"omnibox_popup_provider.h",
"omnibox_popup_view_ios.h",
"omnibox_popup_view_ios.mm",
"omnibox_popup_view_suggestions_delegate.h",
]
deps = [
":popup_internal",
":popup_ui",
"//base",
"//components/image_fetcher/ios",
"//components/omnibox/browser",
"//components/open_from_clipboard",
"//components/search_engines",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/favicon",
"//ios/chrome/browser/main:public",
"//ios/chrome/browser/search_engines",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/coordinators:chrome_coordinators",
"//ios/chrome/browser/ui/default_promo",
"//ios/chrome/browser/ui/default_promo:utils",
"//ios/chrome/browser/ui/main:default_browser_scene_agent",
"//ios/chrome/browser/ui/main:scene_state_header",
"//ios/chrome/browser/ui/ntp:util",
"//ios/chrome/browser/ui/omnibox:omnibox_util",
"//ios/chrome/browser/ui/toolbar/buttons",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/util",
"//ios/chrome/browser/web_state_list:web_state_list",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/favicon",
"//ios/chrome/common/ui/util",
"//ios/web/public:public",
"//net",
"//ui/base",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("popup_accessibility_identifier_constants") {
sources = [
"omnibox_popup_accessibility_identifier_constants.h",
"omnibox_popup_accessibility_identifier_constants.mm",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("popup_ui") {
sources = [
"autocomplete_result_consumer.h",
"autocomplete_suggestion.h",
"favicon_retriever.h",
"image_retriever.h",
"omnibox_icon.h",
"omnibox_icon_view.h",
"omnibox_icon_view.mm",
"omnibox_popup_row_cell.h",
"omnibox_popup_row_cell.mm",
"omnibox_popup_view_controller.h",
"omnibox_popup_view_controller.mm",
"self_sizing_table_view.h",
"self_sizing_table_view.mm",
"simple_omnibox_icon.h",
"simple_omnibox_icon.mm",
]
deps = [
":popup_accessibility_identifier_constants",
"resources:omnibox_popup_tab_match",
"resources:omnibox_suggestion_answer_icon_color",
"resources:omnibox_suggestion_answer_icon_dark_color",
"resources:omnibox_suggestion_icon_color",
"resources:omnibox_suggestion_icon_dark_color",
"//base",
"//components/omnibox/common",
"//ios/chrome/app/strings:ios_strings_grit",
"//ios/chrome/app/theme",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/colors",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/elements",
"//ios/chrome/browser/ui/ntp_tile_views",
"//ios/chrome/browser/ui/omnibox:omnibox_popup_shared",
"//ios/chrome/browser/ui/omnibox:omnibox_suggestion_icon_util",
"//ios/chrome/browser/ui/toolbar/buttons",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common/ui/colors",
"//ios/chrome/common/ui/util",
"//ios/public/provider/chrome/browser",
"//ios/public/provider/chrome/browser/images",
"//ui/base",
"//url",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("popup_internal") {
sources = [
"autocomplete_match_formatter.h",
"autocomplete_match_formatter.mm",
"omnibox_icon_formatter.h",
"omnibox_icon_formatter.mm",
]
deps = [
":popup_ui",
"//base",
"//components/omnibox/browser",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/colors",
"//ios/chrome/browser/ui/omnibox:omnibox_util",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common/ui/colors",
"//ios/third_party/material_components_ios",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [ "omnibox_popup_row_cell_unittest.mm" ]
deps = [
":popup",
":popup_internal",
":popup_ui",
"//base",
"//components/omnibox/browser",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//testing/gtest",
"//ui/base",
]
}
source_set("eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "omnibox_popup_egtest.mm" ]
deps = [
":popup_accessibility_identifier_constants",
"//base",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
"//net:test_support",
]
frameworks = [ "UIKit.framework" ]
}