|
Mojo bindings: Fix typemap includes.
Previously, a header defining a StructTraits specialization could not
include its corresponding generated mojom header, due to the mojom
header including the StructTraits header. This required a brittle set of
forward declarations to correctly avoid this; in practice, this mostly
led to StructTraits that were nominally for a particular variant, but
included the generated mojom header from the default variant.
This CL fixes the issue by splitting typemap headers into
public_headers, which define the native type and are included by the
generated mojom header, and headers which define the StructTraits
specialization for the native type and are only included by the
generated mojom source file, allowing the StructTraits header to include
the generated mojom header.
BUG= 596202
CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel
Committed: https://crrev.com/a1107b7873a0b930ff197da68c3eaacd751839d5
Cr-Commit-Position: refs/heads/master@{#382893}
Total comments: 16
Total comments: 10
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+317 lines, -347 lines) |
Patch |
 |
M |
components/mus/ws/window_manager_factory_service.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/BUILD.gn
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/content_common_mojo_bindings.gyp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/common/mojo.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+24 lines, -12 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_edk_tests.gyp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/mojo_public.gyp
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+25 lines, -25 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/rect_blink.h
|
View
|
|
2 chunks |
+0 lines, -21 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/rect_blink_traits.h
|
View
|
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/rect_chromium.h
|
View
|
|
2 chunks |
+1 line, -20 lines |
0 comments
|
Download
|
 |
A |
mojo/public/cpp/bindings/tests/rect_chromium_traits.h
|
View
|
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl.h
|
View
|
|
1 chunk |
+0 lines, -26 lines |
0 comments
|
Download
|
 |
M |
mojo/public/cpp/bindings/tests/struct_with_traits_impl.cc
|
View
|
|
2 chunks |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
A + |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h
|
View
|
|
3 chunks |
+4 lines, -37 lines |
0 comments
|
Download
|
 |
A + |
mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc
|
View
|
|
1 chunk |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/BUILD.gn
|
View
|
1
2
3
4
5
6
|
3 chunks |
+25 lines, -36 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/blink_test.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/chromium_test.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/rect.mojom
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/struct_with_traits.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/interfaces/bindings/tests/test_native_types.mojom
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/cpp_templates/module-internal.h.tmpl
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_declaration.tmpl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/cpp_templates/struct_serialization_definition.tmpl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/mojom_cpp_generator.py
|
View
|
1
2
3
4
5
6
|
5 chunks |
+80 lines, -56 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/mojom.gni
|
View
|
1
2
3
4
5
|
1 chunk |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
url/mojo/BUILD.gn
|
View
|
|
2 chunks |
+1 line, -14 lines |
2 comments
|
Download
|
 |
M |
url/mojo/gurl.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
url/mojo/origin.typemap
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
url/url.gyp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -34 lines |
0 comments
|
Download
|
Total messages: 23 (8 generated)
|