chromium/ios/chrome/browser/location_bar/ui_bundled/BUILD.gn

# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("ui_bundled") {
  sources = [
    "badges_container_view.h",
    "badges_container_view.mm",
    "location_bar_consumer.h",
    "location_bar_coordinator.h",
    "location_bar_coordinator.mm",
    "location_bar_generic_coordinator.h",
    "location_bar_mediator.h",
    "location_bar_mediator.mm",
    "location_bar_steady_view.h",
    "location_bar_steady_view.mm",
    "location_bar_steady_view_consumer.h",
    "location_bar_steady_view_mediator.h",
    "location_bar_steady_view_mediator.mm",
    "location_bar_url_loader.h",
    "location_bar_view_controller.h",
    "location_bar_view_controller.mm",
  ]
  deps = [
    ":constants",
    ":location_bar_model_delegate",
    "//base",
    "//components/feature_engagement/public",
    "//components/omnibox/browser",
    "//components/open_from_clipboard:",
    "//components/profile_metrics:profile_metrics",
    "//components/search_engines",
    "//components/security_state/ios",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/app/theme",
    "//ios/chrome/browser/autocomplete/model",
    "//ios/chrome/browser/badges/ui_bundled",
    "//ios/chrome/browser/badges/ui_bundled:public",
    "//ios/chrome/browser/browser_state_metrics/model:model",
    "//ios/chrome/browser/contextual_panel/entrypoint/coordinator",
    "//ios/chrome/browser/contextual_panel/entrypoint/ui",
    "//ios/chrome/browser/default_browser/model:default_browser_interest_signals",
    "//ios/chrome/browser/default_promo/ui_bundled:coordinator",
    "//ios/chrome/browser/drag_and_drop/model",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/geolocation/model",
    "//ios/chrome/browser/infobars/model:badge",
    "//ios/chrome/browser/infobars/model:public",
    "//ios/chrome/browser/lens_overlay/coordinator:lens_overlay_availability",
    "//ios/chrome/browser/main/model",
    "//ios/chrome/browser/ntp/model",
    "//ios/chrome/browser/ntp/model:util",
    "//ios/chrome/browser/orchestrator/ui_bundled:ui_bundled",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/web_content_area",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/search_engines/model:search_engines_util",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/coordinator/layout_guide",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/url",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/shared/ui/util:util_swift",
    "//ios/chrome/browser/ssl/model",
    "//ios/chrome/browser/ui/content_suggestions:content_suggestions_ui_util",
    "//ios/chrome/browser/ui/fullscreen",
    "//ios/chrome/browser/ui/fullscreen:ui",
    "//ios/chrome/browser/ui/lens:lens_entrypoint",
    "//ios/chrome/browser/ui/main:default_browser_scene_agent",
    "//ios/chrome/browser/ui/omnibox:omnibox",
    "//ios/chrome/browser/ui/omnibox:omnibox_internal",
    "//ios/chrome/browser/ui/omnibox:omnibox_popup_shared",
    "//ios/chrome/browser/ui/omnibox:omnibox_util",
    "//ios/chrome/browser/ui/omnibox/keyboard_assist",
    "//ios/chrome/browser/ui/omnibox/popup",
    "//ios/chrome/browser/ui/toolbar/buttons",
    "//ios/chrome/browser/ui/toolbar/public",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/voice/ui_bundled:voice",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/common:timing",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/util",
    "//ios/public/provider/chrome/browser/lens:lens_api",
    "//ios/public/provider/chrome/browser/voice_search:voice_search_api",
    "//ios/third_party/material_components_ios",
    "//ios/web/public:public",
    "//ios/web/public/security",
    "//skia",
    "//ui/base",
    "//ui/gfx",
    "//ui/gfx/geometry",
    "//url",
  ]
  frameworks = [
    "CoreText.framework",
    "MobileCoreServices.framework",
    "QuartzCore.framework",
    "UIKit.framework",
  ]
  allow_circular_includes_from =
      [ "//ios/chrome/browser/ui/omnibox:omnibox_internal" ]
}

source_set("location_bar_model_delegate") {
  sources = [
    "location_bar_model_delegate_ios.h",
    "location_bar_model_delegate_ios.mm",
  ]
  deps = [
    "//base",
    "//components/omnibox/browser",
    "//components/prefs",
    "//components/security_state/ios",
    "//ios/chrome/browser/autocomplete/model",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/search_engines/model:template_url_service_factory",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/ssl/model",
    "//ios/components/security_interstitials",
    "//ios/components/webui:url_constants",
    "//ios/web/public",
    "//ios/web/public/security",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("constants") {
  sources = [
    "location_bar_constants.h",
    "location_bar_constants.mm",
  ]
  frameworks = [
    "Foundation.framework",
    "CoreGraphics.framework",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "location_bar_coordinator_unittest.mm",
    "location_bar_steady_view_mediator_unittest.mm",
  ]
  deps = [
    ":ui_bundled",
    "//base",
    "//base/test:test_support",
    "//components/omnibox/browser:test_support",
    "//components/variations",
    "//components/variations:test_support",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/autocomplete/model",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/history/model",
    "//ios/chrome/browser/location_bar/ui_bundled/test",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/web_content_area",
    "//ios/chrome/browser/overlays/model/test",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/ui/omnibox",
    "//ios/chrome/browser/ui/toolbar",
    "//ios/chrome/browser/ui/toolbar/test",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/url_loading/model:test_support",
    "//ios/chrome/test:test_support",
    "//ios/chrome/test/fakes",
    "//ios/web/public",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base",
  ]
}