chromium/chrome/browser/ui/ash/new_window/BUILD.gn

# Copyright 2023 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("new_window") {
  sources = [
    "chrome_new_window_client.cc",
    "chrome_new_window_client.h",
    "chrome_new_window_delegate_provider.cc",
    "chrome_new_window_delegate_provider.h",
  ]

  public_deps = [
    "//ash/public/cpp",
    "//components/arc",
    "//url",
  ]

  deps = [
    "//apps",
    "//ash/constants",
    "//ash/webui/settings/public/constants:mojom",
    "//base",
    "//chrome/browser:browser_public_dependencies",
    "//chrome/browser:primitives",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/ash/apps",
    "//chrome/browser/ash/arc",
    "//chrome/browser/ash/crosapi:browser_util",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/ash/system_web_apps",
    "//chrome/browser/ash/system_web_apps/apps/calculator_app",
    "//chrome/browser/ash/system_web_apps/apps/camera_app",
    "//chrome/browser/chromeos/arc",
    "//chrome/browser/chromeos/network",
    "//chrome/browser/extensions",
    "//chrome/browser/ui:browser_navigator_params_headers",
    "//chrome/browser/ui/ash/multi_user",
    "//chrome/browser/ui/ash/shelf",
    "//chrome/browser/ui/ash/shelf/app_service",
    "//chrome/browser/ui/ash/system_web_apps",
    "//chrome/browser/web_applications",
    "//chrome/common",
    "//components/services/app_service",
    "//components/sessions",
    "//components/url_formatter",
    "//components/user_manager",
    "//components/webapps/common",
    "//content/public/browser",
    "//extensions/browser",
    "//extensions/common",
    "//extensions/common:common_constants",
    "//third_party/blink/public/mojom:mojom_platform",
    "//ui/aura",
    "//ui/base",
    "//ui/base:types",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [ "chrome_new_window_client_browsertest.cc" ]

  deps = [
    ":new_window",
    "//chrome/browser",
    "//chrome/browser:browser_process",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/ui",
    "//chrome/common",
    "//chrome/test:test_support",
    "//chrome/test:test_support_ui",
    "//components/account_id",
    "//components/policy/core/common:common_constants",
    "//components/session_manager/core",
    "//components/user_manager",
    "//components/user_manager:test_support",
    "//content/test:test_support",
    "//testing/gtest",
    "//url",
  ]
}