| # Copyright 2024 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("lens_overlay_availability") { |
| sources = [ |
| "lens_overlay_availability.h", |
| "lens_overlay_availability.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/lens:enterprise_policy", |
| "//components/prefs", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//ios/chrome/browser/shared/public/features", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("coordinator") { |
| sources = [ |
| "lens_omnibox_client.h", |
| "lens_omnibox_client.mm", |
| "lens_omnibox_client_delegate.h", |
| "lens_overlay_coordinator.h", |
| "lens_overlay_coordinator.mm", |
| "lens_overlay_mediator.h", |
| "lens_overlay_mediator.mm", |
| "lens_overlay_mediator_delegate.h", |
| "lens_overlay_presentation_environment.h", |
| "lens_overlay_tab_change_audience.h", |
| "lens_result_page_mediator.h", |
| "lens_result_page_mediator.mm", |
| "lens_result_page_mediator_delegate.h", |
| "lens_view_finder_coordinator.h", |
| "lens_view_finder_coordinator.mm", |
| "lens_web_provider.h", |
| ] |
| deps = [ |
| ":lens_overlay_availability", |
| "//base", |
| "//components/favicon/ios", |
| "//components/feature_engagement/public", |
| "//components/lens", |
| "//components/search_engines", |
| "//components/security_state/ios", |
| "//ios/chrome/app/application_delegate:app_state", |
| "//ios/chrome/app/profile", |
| "//ios/chrome/app/strings:ios_strings_grit", |
| "//ios/chrome/browser/autocomplete/model", |
| "//ios/chrome/browser/bookmarks/model", |
| "//ios/chrome/browser/bookmarks/model:model_utils", |
| "//ios/chrome/browser/context_menu/ui_bundled:coordinator", |
| "//ios/chrome/browser/default_browser/model:default_browser_interest_signals", |
| "//ios/chrome/browser/device_orientation/ui_bundled", |
| "//ios/chrome/browser/feature_engagement/model", |
| "//ios/chrome/browser/fullscreen/ui_bundled", |
| "//ios/chrome/browser/https_upgrades/model", |
| "//ios/chrome/browser/intents/model:model_donation_helper", |
| "//ios/chrome/browser/lens/ui_bundled:lens_entrypoint", |
| "//ios/chrome/browser/lens_overlay/model", |
| "//ios/chrome/browser/lens_overlay/ui", |
| "//ios/chrome/browser/menu/ui_bundled", |
| "//ios/chrome/browser/omnibox/coordinator", |
| "//ios/chrome/browser/omnibox/model", |
| "//ios/chrome/browser/omnibox/public", |
| "//ios/chrome/browser/omnibox/ui", |
| "//ios/chrome/browser/omnibox/ui:omnibox_internal", |
| "//ios/chrome/browser/omnibox/ui/popup", |
| "//ios/chrome/browser/orchestrator/ui_bundled", |
| "//ios/chrome/browser/overlays/model", |
| "//ios/chrome/browser/search_engines/model", |
| "//ios/chrome/browser/search_engines/model:search_engines_util", |
| "//ios/chrome/browser/search_engines/model:template_url_service_factory", |
| "//ios/chrome/browser/shared/coordinator/chrome_coordinator", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_header", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/browser", |
| "//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/url:constants", |
| "//ios/chrome/browser/shared/model/web_state_list", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/shared/public/snackbar", |
| "//ios/chrome/browser/shared/ui/symbols", |
| "//ios/chrome/browser/shared/ui/symbols:buildflags", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/shared/ui/util:omnibox_util", |
| "//ios/chrome/browser/snapshots/model", |
| "//ios/chrome/browser/tabs/model", |
| "//ios/chrome/browser/web/model", |
| "//ios/chrome/browser/web/model:delegate", |
| "//ios/chrome/common:string_conversions", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/util", |
| "//ios/public/provider/chrome/browser/lens:lens_api", |
| "//ios/public/provider/chrome/browser/lens:lens_overlay_api", |
| "//ios/web/public/navigation", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "lens_omnibox_client_unittest.mm", |
| "lens_overlay_coordinator_unittest.mm", |
| "lens_overlay_mediator_unittest.mm", |
| "lens_result_page_mediator_unittest.mm", |
| ] |
| deps = [ |
| ":coordinator", |
| ":test_support", |
| "//base/test:test_support", |
| "//components/feature_engagement/public", |
| "//components/feature_engagement/test:test_support", |
| "//components/lens:enterprise_policy", |
| "//components/omnibox/browser", |
| "//components/omnibox/browser:test_support", |
| "//components/omnibox/common", |
| "//components/search_engines", |
| "//components/search_engines:test_support", |
| "//components/variations:test_support", |
| "//ios/chrome/app/profile", |
| "//ios/chrome/browser/fullscreen/ui_bundled", |
| "//ios/chrome/browser/lens/ui_bundled:lens_entrypoint", |
| "//ios/chrome/browser/lens_overlay/model", |
| "//ios/chrome/browser/lens_overlay/ui", |
| "//ios/chrome/browser/omnibox/coordinator", |
| "//ios/chrome/browser/omnibox/model/omnibox_position", |
| "//ios/chrome/browser/omnibox/ui:omnibox_internal", |
| "//ios/chrome/browser/search_engines/model:template_url_service_factory", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_header", |
| "//ios/chrome/browser/shared/model/application_context", |
| "//ios/chrome/browser/shared/model/browser/test:test_support", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//ios/chrome/browser/shared/model/profile/test", |
| "//ios/chrome/browser/shared/model/web_state_list", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/features", |
| "//ios/chrome/browser/signin/model:authentication_service", |
| "//ios/chrome/browser/signin/model:authentication_service_factory", |
| "//ios/chrome/browser/signin/model:fake_system_identity", |
| "//ios/chrome/browser/signin/model:fake_system_identity_manager", |
| "//ios/chrome/browser/signin/model:test_support", |
| "//ios/chrome/browser/snapshots/model", |
| "//ios/chrome/browser/snapshots/model:snapshot_source", |
| "//ios/chrome/browser/snapshots/model:test_utils", |
| "//ios/chrome/browser/toolbar/ui_bundled/fullscreen", |
| "//ios/chrome/browser/web/model/web_view_proxy", |
| "//ios/chrome/test:test_support", |
| "//ios/chrome/test/providers/lens", |
| "//ios/public/provider/chrome/browser/lens:lens_overlay_api", |
| "//ios/testing:nserror_support", |
| "//ios/testing:ocmock_support", |
| "//ios/web/common:uikit", |
| "//ios/web/public/test", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| sources = [ |
| "fake_chrome_lens_overlay.h", |
| "fake_chrome_lens_overlay.mm", |
| "fake_chrome_lens_overlay_result.h", |
| "fake_chrome_lens_overlay_result.mm", |
| ] |
| deps = [ |
| "//base", |
| "//ios/public/provider/chrome/browser/lens:lens_overlay_api", |
| "//url", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |