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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
ash / webui / common / 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") {
sources = [ "accessibility_features.mojom" ]
webui_module_path = "/ash/webui/common"
disable_variants = true
public_deps = [
":accelerator_fetcher",
":shortcut_input_provider",
"//mojo/public/mojom/base",
"//ui/events/ash/mojom",
]
}
# This is a separate target so that downstream WebUI targets can take
# advantage of JS module Mojom files, without having to generate WebUI Mojom
# files for all dependencies(and their dependencies) in //ash/public/mojom.
mojom("shortcut_input_provider") {
disable_variants = true
webui_module_path = "/"
sources = [ "shortcut_input_provider.mojom" ]
public_deps = [ "//mojo/public/mojom/base" ]
deps = [ "//ash/public/mojom:mojom" ]
}
mojom("accelerator_fetcher") {
disable_variants = true
webui_module_path = "/"
sources = [ "accelerator_fetcher.mojom" ]
public_deps = [ "//mojo/public/mojom/base" ]
deps = [ "//ash/public/mojom:mojom" ]
}
mojom("sea_pen") {
disable_variants = true
webui_module_path = "/"
sources = [
"sea_pen.mojom",
"sea_pen_generated.mojom",
]
public_deps = [
"//mojo/public/mojom/base",
"//url/mojom:url_mojom_gurl",
]
cpp_typemaps = [
{
types = [
{
mojom = "ash.personalization_app.mojom.MantaStatusCode"
cpp = "::manta::MantaStatusCode"
},
]
traits_headers = [ "sea_pen_mojom_traits.h" ]
traits_sources = [ "sea_pen_mojom_traits.cc" ]
traits_public_deps = [
"//ash/webui/personalization_app/proto",
"//components/manta",
]
},
]
}