| # Copyright 2019 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("public") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "badge_constants.h", |
| "badge_constants.mm", |
| "badge_item.h", |
| "badge_type.h", |
| "badges_histograms.h", |
| "badges_histograms.mm", |
| ] |
| deps = [ "//ios/chrome/browser/infobars:badge_state_public" ] |
| } |
| |
| source_set("util") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "badge_overflow_menu_util.h", |
| "badge_overflow_menu_util.mm", |
| "badge_type_util.h", |
| "badge_type_util.mm", |
| ] |
| deps = [ |
| ":public", |
| "//base", |
| "//components/password_manager/core/common", |
| "//components/strings", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/infobars:public", |
| "//ios/chrome/browser/shared/ui/symbols", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("badges") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "badge_button.h", |
| "badge_button.mm", |
| "badge_button_factory.h", |
| "badge_button_factory.mm", |
| "badge_consumer.h", |
| "badge_delegate.h", |
| "badge_mediator.h", |
| "badge_mediator.mm", |
| "badge_static_item.h", |
| "badge_static_item.mm", |
| "badge_tappable_item.h", |
| "badge_tappable_item.mm", |
| "badge_view_controller.h", |
| "badge_view_controller.mm", |
| ] |
| deps = [ |
| ":public", |
| ":util", |
| "resources:incognito_badge_ios14", |
| "//base", |
| "//components/autofill/core/browser", |
| "//components/password_manager/core/common", |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/infobars:badge", |
| "//ios/chrome/browser/infobars:public", |
| "//ios/chrome/browser/infobars/overlays", |
| "//ios/chrome/browser/infobars/overlays:util", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/overlays/public/common/infobars", |
| "//ios/chrome/browser/shared/coordinator/chrome_coordinator", |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/model/browser_state", |
| "//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/list_model", |
| "//ios/chrome/browser/shared/ui/symbols", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/ui/fullscreen:ui", |
| "//ios/chrome/browser/web", |
| "//ios/chrome/common:timing", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/util", |
| "//ios/web/public", |
| "//ios/web/public/permissions", |
| "//ui/base", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ "badge_mediator_unittest.mm" ] |
| deps = [ |
| ":badges", |
| ":public", |
| ":util", |
| "//base/test:test_support", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/infobars:badge", |
| "//ios/chrome/browser/infobars:badge_state_public", |
| "//ios/chrome/browser/infobars/test", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/overlays/public/common/infobars", |
| "//ios/chrome/browser/overlays/test", |
| "//ios/chrome/browser/shared/model/browser/test:test_support", |
| "//ios/chrome/browser/shared/model/browser_state:test_support", |
| "//ios/chrome/browser/shared/model/web_state_list", |
| "//ios/chrome/browser/shared/model/web_state_list/test:test_support", |
| "//ios/chrome/browser/ui/infobars:test_support", |
| "//ios/web/public/test/fakes", |
| "//testing/gtest", |
| ] |
| } |