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

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

Issue 1967703004: Mojo C++ bindings: add StringTraits and ArrayTraits for STL types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@27_update_users
Patch Set: Created 4 years, 7 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 f4ae0cecc90967b74c7c00e7472539f9623f2604..9ca4bbe7235946b6da04cead6276f8900676f71c 100644
--- a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
+++ b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
@@ -4,12 +4,19 @@
module mojo.test;
+struct NestedStructWithTraits {
+ int32 value;
+};
+
struct StructWithTraits {
bool f_bool;
uint32 f_uint32;
uint64 f_uint64;
string f_string;
string f_string2;
+ array<string> f_string_array;
+ NestedStructWithTraits f_struct;
+ array<NestedStructWithTraits> f_struct_array;
};
interface TraitsTestService {

Powered by Google App Engine
This is Rietveld 408576698