blob: 08d8007899843882187c3cfc4d17d1d39ea04e5a [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("omnibox") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"location_bar_delegate.h",
"omnibox_left_image_consumer.h",
"web_omnibox_edit_controller.cc",
"web_omnibox_edit_controller.h",
]
deps = [
"//base",
"//components/omnibox/browser",
"//ui/base",
]
}
source_set("omnibox_protocols") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"favicon_retriever.h",
"image_retriever.h",
]
}
source_set("omnibox_ui") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"omnibox_icon.h",
"omnibox_icon_view.h",
"omnibox_icon_view.mm",
]
deps = [
":omnibox_protocols",
"//url",
]
}
source_set("omnibox_ui_internal") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"omnibox_icon_formatter.h",
"omnibox_icon_formatter.mm",
]
deps = [
":omnibox_protocols",
":omnibox_ui",
":omnibox_util",
"//components/omnibox/browser",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/colors",
"//ios/public/provider/chrome/browser",
"//ios/public/provider/chrome/browser/images",
"//url",
]
}
source_set("omnibox_popup_shared") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"omnibox_constants.h",
"omnibox_constants.mm",
]
}
source_set("omnibox_util") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"omnibox_util.h",
"omnibox_util.mm",
]
deps = [
"resources:answer_calculator",
"resources:answer_conversion",
"resources:answer_dictionary",
"resources:answer_local_time",
"resources:answer_stock",
"resources:answer_sunrise",
"resources:answer_translation",
"resources:answer_when_is",
"resources:background_solid",
"resources:background_stroke",
"resources:favicon_fallback",
"resources:omnibox_background",
"resources:omnibox_clear_icon",
"resources:omnibox_completion_bookmark",
"resources:omnibox_completion_calculator",
"resources:omnibox_completion_default_favicon",
"resources:omnibox_completion_history",
"resources:omnibox_completion_search",
"resources:search",
"//base",
"//components/omnibox/browser",
"//components/security_state/core",
"//ios/chrome/browser/ui:feature_flags",
]
public_deps = [
"//ios/chrome/app/theme",
]
}
source_set("omnibox_internal") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"chrome_omnibox_client_ios.h",
"chrome_omnibox_client_ios.mm",
"omnibox_consumer.h",
"omnibox_container_view.h",
"omnibox_container_view.mm",
"omnibox_coordinator.h",
"omnibox_coordinator.mm",
"omnibox_mediator.h",
"omnibox_mediator.mm",
"omnibox_text_field_delegate.h",
"omnibox_text_field_ios.h",
"omnibox_text_field_ios.mm",
"omnibox_text_field_paste_delegate.h",
"omnibox_text_field_paste_delegate.mm",
"omnibox_view_controller.h",
"omnibox_view_controller.mm",
"omnibox_view_ios.h",
"omnibox_view_ios.mm",
"web_omnibox_edit_controller_impl.h",
"web_omnibox_edit_controller_impl.mm",
]
deps = [
":omnibox",
":omnibox_popup_shared",
":omnibox_util",
"resources:omnibox_transparent_background",
"//base",
"//components/favicon/ios",
"//components/open_from_clipboard:",
"//components/resources",
"//components/search_engines",
"//components/security_state/core",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/autocomplete",
"//ios/chrome/browser/bookmarks",
"//ios/chrome/browser/bookmarks:bookmarks_utils",
"//ios/chrome/browser/browser_state",
"//ios/chrome/browser/favicon",
"//ios/chrome/browser/net",
"//ios/chrome/browser/prerender",
"//ios/chrome/browser/search_engines",
"//ios/chrome/browser/sessions",
"//ios/chrome/browser/ui:feature_flags",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/fullscreen",
"//ios/chrome/browser/ui/location_bar:constants",
"//ios/chrome/browser/ui/omnibox/popup",
"//ios/chrome/browser/ui/orchestrator:orchestrator",
"//ios/chrome/browser/ui/toolbar/public",
"//ios/chrome/browser/ui/toolbar/public:feature_flags",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common",
"//ios/chrome/common/favicon",
"//ios/public/provider/chrome/browser",
"//ios/third_party/material_roboto_font_loader_ios",
"//ios/web",
"//net",
"//skia",
"//third_party/google_toolbox_for_mac",
"//ui/base",
"//ui/gfx",
"//ui/gfx/geometry",
"//url",
]
public_deps = [
"//components/omnibox/browser",
]
libs = [
"CoreText.framework",
"MobileCoreServices.framework",
"QuartzCore.framework",
"UIKit.framework",
]
}
source_set("unit_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"omnibox_text_field_ios_unittest.mm",
"omnibox_view_ios_unittest.mm",
]
deps = [
":omnibox",
":omnibox_internal",
":resources_unit_tests",
"//base",
"//base/test:test_support",
"//ios/chrome/app/strings",
"//ios/chrome/browser",
"//ios/chrome/browser/browser_state:test_support",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base",
]
}
bundle_data("resources_unit_tests") {
visibility = [ ":unit_tests" ]
testonly = true
sources = [
"//ios/chrome/test/data/omnibox/selected_ranges.txt",
]
outputs = [
"{{bundle_resources_dir}}/" +
"ios/chrome/test/data/omnibox/{{source_file_part}}",
]
}
source_set("perf_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
testonly = true
sources = [
"omnibox_perftest.mm",
]
deps = [
":omnibox_internal",
"//base",
"//base/test:test_support",
"//components/omnibox/browser:test_support",
"//ios/chrome/browser/autocomplete",
"//ios/chrome/browser/browser_state:test_support",
"//ios/chrome/browser/search_engines",
"//ios/chrome/browser/tabs",
"//ios/chrome/browser/tabs:tabs_internal",
"//ios/chrome/browser/ui/commands",
"//ios/chrome/browser/ui/location_bar:location_bar_model_delegate",
"//ios/chrome/browser/ui/toolbar",
"//ios/chrome/browser/ui/util",
"//ios/chrome/browser/web_state_list",
"//ios/chrome/browser/web_state_list:test_support",
"//ios/chrome/test/base:perf_test_support",
"//ios/web/public/test/fakes",
"//testing/gtest",
"//third_party/ocmock",
"//ui/base:test_support",
]
libs = [ "UIKit.framework" ]
}