# Copyright 2021 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 = [ "shortcut_customization.mojom" ]
webui_module_path = "/"
public_deps = [
"//ash/public/mojom:accelerator_configuration",
"//ash/public/mojom:accelerator_info",
"//ash/public/mojom:accelerator_keys",
"//mojo/public/mojom/base",
"//ui/events/ash/mojom",
]
cpp_typemaps = [
{
types = [
{
mojom = "ash.shortcut_customization.mojom.SimpleAccelerator"
cpp = "::ui::Accelerator"
},
]
traits_headers = [ "shortcut_customization_mojom_traits.h" ]
traits_sources = [ "shortcut_customization_mojom_traits.cc" ]
traits_public_deps = [
"//ui/base",
"//ui/events:event_constants",
]
},
]
}
source_set("unit_tests") {
testonly = true
sources = [ "shortcut_customization_mojom_traits_unittest.cc" ]
deps = [
":mojom",
"//testing/gtest",
"//ui/base",
"//ui/events:event_constants",
]
}