| # Copyright 2021 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("context_menu") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "context_menu_configuration_provider.h", |
| "context_menu_configuration_provider.mm", |
| ] |
| deps = [ |
| ":context_menu_ui", |
| "//base", |
| "//components/search_engines", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/favicon", |
| "//ios/chrome/browser/policy:policy_util", |
| "//ios/chrome/browser/reading_list", |
| "//ios/chrome/browser/search_engines", |
| "//ios/chrome/browser/search_engines:search_engines_util", |
| "//ios/chrome/browser/shared/coordinator/alert", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_browser_agent", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_header", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//ios/chrome/browser/shared/model/prefs:pref_names", |
| "//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/util", |
| "//ios/chrome/browser/shared/ui/util:url_with_title", |
| "//ios/chrome/browser/shared/ui/util/image:web", |
| "//ios/chrome/browser/ui/context_menu/link_preview", |
| "//ios/chrome/browser/ui/incognito_reauth:incognito_reauth_commands", |
| "//ios/chrome/browser/ui/incognito_reauth:incognito_reauth_scene_agent", |
| "//ios/chrome/browser/ui/lens:lens_availability", |
| "//ios/chrome/browser/ui/lens:lens_entrypoint", |
| "//ios/chrome/browser/ui/menu", |
| "//ios/chrome/browser/url_loading", |
| "//ios/chrome/browser/web", |
| "//ios/chrome/browser/web/image_fetch", |
| "//ios/chrome/common/ui/favicon:favicon_constants", |
| "//ios/public/provider/chrome/browser/context_menu:context_menu_api", |
| "//ios/public/provider/chrome/browser/lens:lens_api", |
| "//ios/web/common", |
| "//ios/web/common:features", |
| "//ui/base", |
| "//url", |
| ] |
| } |
| |
| source_set("context_menu_ui") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "context_menu_utils.h", |
| "context_menu_utils.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/url_formatter", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/favicon", |
| "//ios/web/common:features", |
| "//ios/web/public/ui", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| |
| deps = [ |
| ":context_menu_ui", |
| "//base", |
| "//base/test:test_support", |
| "//components/url_formatter", |
| "//ios/web/common", |
| "//ios/web/public", |
| "//net", |
| "//testing/gtest", |
| ] |
| |
| sources = [ "context_menu_utils_unittest.mm" ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ "context_menu_egtest.mm" ] |
| deps = [ |
| "//base", |
| "//base/test:test_support", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/ui/fullscreen/test:eg_test_support+eg2", |
| "//ios/chrome/test:eg_test_support+eg2", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/web/common:features", |
| "//ios/web/public/test:element_selector", |
| "//net:test_support", |
| "//url", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |