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
content / test / data / web_ui_ts_test.test-mojom [blame]
// 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.
module content.mojom;
import "content/test/data/web_ui_ts_test_types.test-mojom";
import "content/test/data/web_ui_ts_test_other_types.test-mojom";
import "url/mojom/url.mojom";
enum TestEnum {
kOne,
kTwo,
};
struct OptionalNumericsStruct {
bool? optional_bool;
uint8? optional_uint8;
TestEnum? optional_enum;
};
struct SimpleMappedType {
string value;
};
struct NestedMappedType {
NestedMappedType? nested;
};
struct StringDict {
MappedDict data;
};
interface WebUITsMojoTestCache {
Put(url.mojom.Url url, string contents);
GetAll() => (array<TsCacheItem> items);
Echo(
bool? optional_bool,
uint8? optional_uint8,
TestEnum? optional_enum,
OptionalNumericsStruct optional_numerics,
array<bool?> optional_bools,
array<uint32?> optional_ints,
array<TestEnum?> optional_enums,
map<int32, bool?> bool_map,
map<int32, int32?> int_map,
map<int32, TestEnum?> enum_map,
SimpleMappedType simple_mapped_type,
NestedMappedType nested_mapped_type,
StringDict? other_mapped_type)
=> (
bool? optional_bool,
uint8? optional_uint8,
TestEnum? optional_enum,
OptionalNumericsStruct optional_numerics,
array<bool?> optional_bools,
array<uint32?> optional_ints,
array<TestEnum?> optional_enums,
map<int32, bool?> bool_map,
map<int32, int32?> int_map,
map<int32, TestEnum?> enum_map,
SimpleMappedType simple_mapped_type,
NestedMappedType nested_mapped_type,
StringDict? other_mapped_type);
};