1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
ash / webui / shortcut_customization_ui / mojom / BUILD.gn [blame]
# 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",
]
}