// 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 "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;
};
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)
=> (
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);
};