|
Mojo C++ bindings: custom type mapping of map
This CL:
- introduces map_traits which is similar to struct_traits;
- adds specialization for mojo::Map and std::map;
- changes the ArraySerializer interface so that it can be re-used by map key/value serialization.
BUG= 577686
Committed: https://crrev.com/507ce12625f5a76456ca3f7c844aa65d025aa0b2
Cr-Commit-Position: refs/heads/master@{#396862}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+477 lines, -125 lines) |
Patch |
![](/static/closedtriangle.gif) |
M |
mojo/mojo_public.gyp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/BUILD.gn
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/array_traits.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/lib/array_serialization.h
|
View
|
1
|
17 chunks |
+105 lines, -47 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/lib/map_internal.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/lib/map_serialization.h
|
View
|
1
|
4 chunks |
+116 lines, -59 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/lib/serialization.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/lib/serialization_forward.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/lib/serialization_util.h
|
View
|
1
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/map.h
|
View
|
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/cpp/bindings/map_traits.h
|
View
|
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/cpp/bindings/map_traits_standard.h
|
View
|
|
1 chunk |
+51 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
A |
mojo/public/cpp/bindings/map_traits_stl.h
|
View
|
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/struct_traits.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/tests/struct_traits_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
|
View
|
|
4 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/interfaces/bindings/tests/struct_with_traits.mojom
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/tools/bindings/blink_bindings_configuration.gni
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_declaration.tmpl
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
![](/static/closedtriangle.gif) |
M |
mojo/public/tools/bindings/generators/cpp_templates/struct_data_view_definition.tmpl
|
View
|
|
1 chunk |
+2 lines, -13 lines |
0 comments
|
Download
|
Total messages: 16 (7 generated)
|