| # Copyright 2019 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("overlays") { |
| public = [ |
| "overlay_container_coordinator.h", |
| "overlay_coordinator_factory.h", |
| ] |
| sources = [ |
| "overlay_container_coordinator+initialization.h", |
| "overlay_container_coordinator.mm", |
| "overlay_coordinator_factory+initialization.h", |
| "overlay_coordinator_factory.mm", |
| "overlay_presentation_context_coordinator.h", |
| "overlay_presentation_context_coordinator.mm", |
| "overlay_presentation_context_fullscreen_disabler.h", |
| "overlay_presentation_context_fullscreen_disabler.mm", |
| "overlay_presentation_context_impl.h", |
| "overlay_presentation_context_impl.mm", |
| "overlay_presentation_context_impl_delegate.h", |
| "overlay_request_ui_state.h", |
| "overlay_request_ui_state.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| friend = [ |
| ":unit_tests", |
| "//ios/chrome/browser/ui/overlays/web_content_area/java_script_dialogs/test", |
| "//ios/chrome/browser/ui/overlays/test", |
| ] |
| |
| deps = [ |
| ":coordinators", |
| ":ui", |
| "//base", |
| "//ios/chrome/browser/main", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/fullscreen", |
| "//ios/chrome/browser/ui/fullscreen:feature_flags", |
| "//ios/chrome/browser/ui/overlays/infobar_banner", |
| "//ios/chrome/browser/ui/overlays/infobar_modal", |
| "//ios/chrome/browser/ui/overlays/web_content_area", |
| "//ios/chrome/common/ui/util", |
| ] |
| } |
| |
| source_set("ui") { |
| sources = [ |
| "overlay_container_view_controller.h", |
| "overlay_container_view_controller.mm", |
| "overlay_presentation_context_view_controller.h", |
| "overlay_presentation_context_view_controller.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":presentation_controller", |
| "//base", |
| ] |
| } |
| |
| source_set("presentation_controller") { |
| sources = [ |
| "overlay_presentation_controller.h", |
| "overlay_presentation_controller.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| } |
| |
| source_set("coordinators") { |
| sources = [ |
| "overlay_request_coordinator+subclassing.h", |
| "overlay_request_coordinator.h", |
| "overlay_request_coordinator.mm", |
| "overlay_request_coordinator_delegate.h", |
| "overlay_request_mediator+subclassing.h", |
| "overlay_request_mediator.h", |
| "overlay_request_mediator.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| "//base", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| ] |
| } |
| |
| source_set("util") { |
| sources = [ |
| "overlay_presentation_context_util.h", |
| "overlay_presentation_context_util.mm", |
| "overlay_request_mediator_util.h", |
| "overlay_request_mediator_util.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":coordinators", |
| "//base", |
| "//ios/chrome/browser/overlays", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "overlay_container_coordinator_unittest.mm", |
| "overlay_container_view_controller_unittest.mm", |
| "overlay_presentation_context_coordinator_unittest.mm", |
| "overlay_presentation_context_fullscreen_disabler_unittest.mm", |
| "overlay_presentation_context_impl_unittest.mm", |
| "overlay_presentation_context_view_controller_unittest.mm", |
| "overlay_request_mediator_unittest.mm", |
| "overlay_request_mediator_util_unittest.mm", |
| "overlay_request_ui_state_unittest.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":coordinators", |
| ":overlays", |
| ":ui", |
| ":util", |
| "//base/test:test_support", |
| "//ios/chrome/browser/main:test_support", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/overlays/public/test_modality", |
| "//ios/chrome/browser/overlays/public/web_content_area", |
| "//ios/chrome/browser/overlays/test", |
| "//ios/chrome/browser/ui/fullscreen", |
| "//ios/chrome/browser/ui/fullscreen:feature_flags", |
| "//ios/chrome/browser/ui/overlays/test", |
| "//ios/chrome/browser/ui/overlays/test_modality", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/test:test_support", |
| "//ios/web/common", |
| "//ios/web/public/test", |
| "//ios/web/public/test/fakes", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |