chromium/chrome/browser/ui/views/borealis/BUILD.gn

# 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.

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

static_library("borealis") {
  sources = [
    "borealis_beta_badge.cc",
    "borealis_beta_badge.h",
    "borealis_disallowed_dialog.cc",
    "borealis_disallowed_dialog.h",
    "borealis_launch_error_dialog.cc",
    "borealis_launch_error_dialog.h",
    "borealis_splash_screen_view.cc",
    "borealis_splash_screen_view.h",
  ]

  deps = [
    "//chrome/app/theme:chrome_unscaled_resources",
    "//chrome/browser/ash/borealis",
    "//chrome/browser/feedback",
    "//chrome/browser/ui/color:color_headers",
    "//chromeos/dbus/power",
    "//ui/chromeos/styles:cros_tokens_color_mappings",
  ]

  allow_circular_includes_from = [ "//chrome/browser/ash/borealis" ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [
    "borealis_disallowed_dialog_browsertest.cc",
    "borealis_splash_screen_view_browsertest.cc",
  ]

  deps = [
    ":borealis",
    "//chrome/browser/ash/borealis:test_support",
    "//chrome/browser/ash/borealis/testing:test_support",
    "//chrome/browser/ui",
    "//chrome/test:test_support",
    "//content/test:test_support",
  ]
}