blob: 004f0bc45adbeda892e2346759ccda13221f087e [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",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/favicon",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/ntp:util",
"//ios/chrome/browser/ui/omnibox:omnibox_protocols",
"//ios/chrome/browser/ui/omnibox:omnibox_util",
"//ios/chrome/browser/ui/omnibox/popup/shortcuts",
"//ios/chrome/browser/ui/toolbar/buttons",
"//ios/chrome/browser/ui/toolbar/public:feature_flags",
"//ios/chrome/browser/ui/util",
"//ios/chrome/browser/web_state_list:web_state_list",
"//ios/chrome/common/favicon",
"//ios/chrome/common/ui_util",
"//ios/web/public:public",
"//net",
"//ui/base",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("popup_ui") {
sources = [
"autocomplete_result_consumer.h",
"autocomplete_suggestion.h",
"omnibox_popup_base_view_controller+internal.h",
"omnibox_popup_base_view_controller.h",
"omnibox_popup_base_view_controller.mm",
"omnibox_popup_legacy_view_controller.h",
"omnibox_popup_legacy_view_controller.mm",
"omnibox_popup_row.h",
"omnibox_popup_row.mm",
"omnibox_popup_row_cell.h",
"omnibox_popup_row_cell.mm",
"omnibox_popup_truncating_label.h",
"omnibox_popup_truncating_label.mm",
"omnibox_popup_view_controller.h",
"omnibox_popup_view_controller.mm",
"self_sizing_table_view.h",
"self_sizing_table_view.mm",
]
deps = [
"resources:omnibox_popup_tab_match",
"//base",
"//components/omnibox/common",
"//ios/chrome/app/strings:ios_strings_grit",
"//ios/chrome/app/theme",
"//ios/chrome/browser/ui/colors",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/elements",
"//ios/chrome/browser/ui/omnibox:omnibox_popup_shared",
"//ios/chrome/browser/ui/omnibox:omnibox_protocols",
"//ios/chrome/browser/ui/omnibox:omnibox_ui",
"//ios/chrome/browser/ui/toolbar/buttons",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common/ui_util",
"//ui/base",
"//url",
]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("popup_internal") {
sources = [
"autocomplete_match_formatter.h",
"autocomplete_match_formatter.mm",
]
deps = [
":popup_ui",
"//base",
"//components/omnibox/browser",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/omnibox:omnibox_ui_internal",
"//ios/chrome/browser/ui/omnibox:omnibox_util",
"//ios/chrome/browser/ui/util",
"//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_view_controller_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("eg_tests") {
testonly = true
sources = [
"omnibox_popup_egtest.mm",
]
deps = [
":popup_internal",
":popup_ui",
"//base",
"//base/test:test_support",
"//components/omnibox/browser",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_constant",
"//ios/chrome/browser/ui/tab_grid:egtest_support",
"//ios/chrome/test/app:test_support",
"//ios/chrome/test/earl_grey:test_support",
"//ios/testing/earl_grey:earl_grey_support",
"//ios/third_party/earl_grey:earl_grey+link",
"//testing/gmock",
]
libs = [ "XCTest.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}