chromium/ash/webui/color_internals/mojom/BUILD.gn

# Copyright 2022 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") {
  sources = [ "color_internals.mojom" ]

  webui_module_path = "/ash/webui/color_internals"

  public_deps = [ "//skia/public/mojom" ]

  cpp_typemaps = [
    {
      types = [
        {
          mojom = "ash.color_internals.mojom.WallpaperCalculatedColors"
          cpp = "::ash::WallpaperCalculatedColors"
        },
      ]
      traits_headers = [ "color_internals_mojom_traits.h" ]
      traits_sources = [ "color_internals_mojom_traits.cc" ]
      traits_public_deps = [
        "//ash",
        "//skia",
      ]
    },
  ]
}