mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 09:46:09 +03:00
150 lines
3.9 KiB
Plaintext
150 lines
3.9 KiB
Plaintext
# 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") {
|
|
sources = [
|
|
"location_bar_controller.cc",
|
|
"location_bar_controller.h",
|
|
"location_bar_delegate.h",
|
|
"web_omnibox_edit_controller.cc",
|
|
"web_omnibox_edit_controller.h",
|
|
]
|
|
deps = [
|
|
"//base",
|
|
"//components/omnibox/browser",
|
|
"//ui/base",
|
|
]
|
|
}
|
|
|
|
source_set("omnibox_util") {
|
|
sources = [
|
|
"omnibox_util.cc",
|
|
"omnibox_util.h",
|
|
]
|
|
deps = [
|
|
"//base",
|
|
"//components/omnibox/browser",
|
|
"//components/security_state/core",
|
|
"//ios/chrome/app/theme",
|
|
]
|
|
}
|
|
|
|
source_set("omnibox_internal") {
|
|
configs += [ "//build/config/compiler:enable_arc" ]
|
|
sources = [
|
|
"autocomplete_match_formatter.h",
|
|
"autocomplete_match_formatter.mm",
|
|
"autocomplete_result_consumer.h",
|
|
"autocomplete_suggestion.h",
|
|
"chrome_omnibox_client_ios.h",
|
|
"chrome_omnibox_client_ios.mm",
|
|
"image_retriever.h",
|
|
"location_bar_controller_impl.h",
|
|
"location_bar_controller_impl.mm",
|
|
"location_bar_view.h",
|
|
"location_bar_view.mm",
|
|
"omnibox_popup_mediator.h",
|
|
"omnibox_popup_mediator.mm",
|
|
"omnibox_popup_positioner.h",
|
|
"omnibox_popup_presenter.h",
|
|
"omnibox_popup_presenter.mm",
|
|
"omnibox_popup_provider.h",
|
|
"omnibox_popup_row.h",
|
|
"omnibox_popup_row.mm",
|
|
"omnibox_popup_view_controller.h",
|
|
"omnibox_popup_view_controller.mm",
|
|
"omnibox_popup_view_ios.h",
|
|
"omnibox_popup_view_ios.mm",
|
|
"omnibox_popup_view_suggestions_delegate.h",
|
|
"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_ios.h",
|
|
"omnibox_view_ios.mm",
|
|
"truncating_attributed_label.h",
|
|
"truncating_attributed_label.mm",
|
|
]
|
|
deps = [
|
|
":omnibox",
|
|
":omnibox_util",
|
|
"resources:omnibox_background",
|
|
"resources:omnibox_transparent_background",
|
|
"//base",
|
|
"//components/favicon/ios",
|
|
"//components/image_fetcher/ios",
|
|
"//components/open_from_clipboard",
|
|
"//components/resources",
|
|
"//components/search_engines",
|
|
"//components/security_state/core",
|
|
"//components/strings",
|
|
"//components/toolbar",
|
|
"//ios/chrome/app/strings",
|
|
"//ios/chrome/app/theme",
|
|
"//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/net",
|
|
"//ios/chrome/browser/prerender",
|
|
"//ios/chrome/browser/search_engines",
|
|
"//ios/chrome/browser/sessions",
|
|
"//ios/chrome/browser/ui",
|
|
"//ios/chrome/browser/ui/commands",
|
|
"//ios/chrome/browser/ui/toolbar/public",
|
|
"//ios/chrome/common",
|
|
"//ios/public/provider/chrome/browser",
|
|
"//ios/third_party/material_components_ios",
|
|
"//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",
|
|
]
|
|
deps = [
|
|
":omnibox_internal",
|
|
":resources_unit_tests",
|
|
"//base",
|
|
"//ios/chrome/app/strings",
|
|
"//ios/chrome/browser",
|
|
"//testing/gtest",
|
|
"//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}}",
|
|
]
|
|
}
|