|
Mojo C++ bindings: add StringTraits and ArrayTraits for STL types.
It means mojom string and array can be automatically convert to/from std::string and std::vector, respectively.
This CL also allows array of custom-mapped objects.
BUG= 577686
Committed: https://crrev.com/dec89e06f5f7d1c747df774086480b739fb0accc
Cr-Commit-Position: refs/heads/master@{#393567}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+212 lines, -104 lines) |
Patch |
 |
M |
mojo/mojo_public.gyp
|
View
|
|
4 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/BUILD.gn
|
View
|
|
4 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
mojo/public/cpp/bindings/array_traits_standard.h
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/array_traits_stl.h
|
View
|
1
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
mojo/public/cpp/bindings/array_traits_wtf.h
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
D |
mojo/public/cpp/bindings/lib/array_traits_standard.h
|
View
|
1
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
D |
mojo/public/cpp/bindings/lib/array_traits_wtf.h
|
View
|
1
|
1 chunk |
+0 lines, -37 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/lib/serialization.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/lib/wtf_serialization.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/string_traits_stl.h
|
View
|
1
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_traits_unittest.cc
|
View
|
1
2
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits.typemap
|
View
|
1
2
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
|
View
|
1
2
|
2 chunks |
+30 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
|
View
|
1
2
|
3 chunks |
+29 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
|
View
|
1
2
|
1 chunk |
+27 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/mojom_cpp_generator.py
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 11 (3 generated)
|