chromium/chrome/services/util_win/public/mojom/BUILD.gn

# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//mojo/public/tools/bindings/mojom.gni")

mojom("mojom") {
  sources = [
    "util_read_icon.mojom",
    "util_win.mojom",
  ]

  public_deps = [
    "//mojo/public/mojom/base",
    "//sandbox/policy/mojom",
    "//ui/gfx/image/mojom",
  ]

  cpp_typemaps = [
    {
      types = [
        {
          mojom = "chrome.mojom.AntiVirusProduct"
          cpp = "::metrics::SystemProfileProto_AntiVirusProduct"
        },
        {
          mojom = "chrome.mojom.CertificateType"
          cpp = "::CertificateInfo::Type"
        },
        {
          mojom = "chrome.mojom.FileFilterSpec"
          cpp = "::ui::FileFilterSpec"
        },
        {
          mojom = "chrome.mojom.InspectionResult"
          cpp = "::ModuleInspectionResult"
          move_only = true
        },
        {
          mojom = "chrome.mojom.SelectFileDialogType"
          cpp = "::ui::SelectFileDialog::Type"
        },
        {
          mojom = "chrome.mojom.ShortcutProperties"
          cpp = "::base::win::ShortcutProperties"
        },
        {
          mojom = "chrome.mojom.ShortcutOperation"
          cpp = "::base::win::ShortcutOperation"
        },
      ]
      traits_headers = [ "util_win_mojom_traits.h" ]
      traits_sources = [ "util_win_mojom_traits.cc" ]
      traits_public_deps = [
        "//base",
        "//chrome/browser/win/conflicts:module_info",
        "//third_party/metrics_proto",
        "//ui/shell_dialogs",
      ]
    },
  ]
}