Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: mojo/public/interfaces/bindings/tests/struct_with_traits.mojom

Issue 2179273002: Mojo C++ bindings: support mapping T and T? differently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
diff --git a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
index d395a73b015445df8ba17ecd19a66a476d2ffb2b..955fb08b7c34f5ed8305d16878cbd16a982f1402 100644
--- a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
+++ b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
@@ -49,7 +49,7 @@ struct MoveOnlyStructWithTraitsContainer {
MoveOnlyStructWithTraits f_struct;
};
-struct StructWithTraitsForUniquePtrTest {
+struct StructWithTraitsForUniquePtr {
int32 f_int32;
};
@@ -62,8 +62,14 @@ interface TraitsTestService {
EchoMoveOnlyStructWithTraits(MoveOnlyStructWithTraits s) =>
(MoveOnlyStructWithTraits passed);
+ EchoNullableMoveOnlyStructWithTraits(MoveOnlyStructWithTraits? s) =>
+ (MoveOnlyStructWithTraits? passed);
+
EchoEnumWithTraits(EnumWithTraits e) => (EnumWithTraits passed);
- EchoStructWithTraitsForUniquePtrTest(StructWithTraitsForUniquePtrTest e) => (
- StructWithTraitsForUniquePtrTest passed);
+ EchoStructWithTraitsForUniquePtr(StructWithTraitsForUniquePtr e) => (
+ StructWithTraitsForUniquePtr passed);
+
+ EchoNullableStructWithTraitsForUniquePtr(StructWithTraitsForUniquePtr? e) => (
+ StructWithTraitsForUniquePtr? passed);
};
« no previous file with comments | « mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h ('k') | mojo/public/tools/bindings/generate_type_mappings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698