chromium/chrome/browser/ui/webui/ash/settings/pages/device/input_device_settings/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")
import("//mojo/public/tools/bindings/mojom.gni")

assert(is_chromeos_ash)

mojom("mojom") {
  disable_variants = true

  sources = [ "input_device_settings_provider.mojom" ]

  webui_module_path = "/"

  public_deps = [
    "//ash/public/mojom:input_device_settings",
    "//mojo/public/mojom/base",
    "//ui/events/ash/mojom",
  ]
}

static_library("input_device_settings") {
  sources = [
    "input_device_settings_provider.cc",
    "input_device_settings_provider.h",
  ]

  public_deps = [
    ":mojom",
    "//ash",
    "//ash/public/cpp",
    "//ash/public/mojom:input_device_settings",
    "//base",
    "//chrome/browser:browser_public_dependencies",
    "//chromeos/dbus/power",
    "//content/public/browser",
    "//mojo/public/cpp/bindings",
    "//ui/gfx",
    "//ui/views",
  ]

  deps = [
    "//ash/constants",
    "//ash/public/cpp:accelerator_actions",
    "//chrome/app:generated_resources",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/apps/app_service:constants",
    "//chrome/browser/profiles:profile",
    "//chromeos/dbus/power:power_manager_proto",
    "//components/prefs",
    "//components/services/app_service",
    "//mojo/public/cpp/bindings:bindings_base",
    "//ui/base",
    "//ui/events/ash",
    "//ui/events/ash/mojom",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "input_device_settings_provider_unittest.cc" ]

  deps = [
    ":input_device_settings",
    ":mojom",
    "//ash",
    "//ash/constants",
    "//ash/public/cpp",
    "//ash/public/cpp:test_support",
    "//ash/public/mojom:input_device_settings",
    "//ash/public/mojom:input_device_settings_shared_cpp_sources",
    "//base",
    "//base/test:test_support",
    "//chromeos/dbus/power",
    "//chromeos/dbus/power:power_manager_proto",
    "//mojo/public/cpp/bindings:bindings_base",
    "//testing/gtest",
    "//ui/views",
    "//ui/views:test_support",
  ]
}