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

Unified Diff: mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h

Issue 2014403002: Mojo C++ bindings: custom type mapping of map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/cpp/bindings/tests/struct_with_traits_impl_traits.h
diff --git a/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h b/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
index c4a429531ce7a33f52b6d3c84c548db82cd9883f..90fd92d2447ce1f4fd1c354ceac9a9c4f3b13342 100644
--- a/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
@@ -73,6 +73,11 @@ struct StructTraits<test::StructWithTraits, test::StructWithTraitsImpl> {
const test::StructWithTraitsImpl& value) {
return value.get_struct_array();
}
+
+ static const std::map<std::string, test::NestedStructWithTraitsImpl>&
+ f_struct_map(const test::StructWithTraitsImpl& value) {
+ return value.get_struct_map();
+ }
};
template <>

Powered by Google App Engine
This is Rietveld 408576698