|
Dart: Removes name conflicts from generated bindings.
This change causes the generated abstract class having the same name as the interface to contain only the interface's method declarations. The generated Proxy class then implements the base class. In addition to implementing the interface methods, the generated Proxy class has one private field _proxyImpl, which is a MojoEventStreamListener and manages sending messages and receiving responses. Operations on the ProxyImpl (close, bind, etc.) are exposed through generated utility functions.
The generated Stub is largely as before with the difference that a class providing a service will implement the mojo interface and *have* a Stub rather than be a Stub. Where appropriate, this change also calls listen() immediately where a Stub is constructed.
BUG=
R=hansmuller@google.com, sky@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/96af48303403d1a6d443f5c05f78b6e9480be9c3
Total comments: 2
Total comments: 2
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+294 lines, -243 lines) |
Patch |
 |
M |
examples/dart/console_example/main.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
examples/dart/hello_world/hello/main.dart
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
examples/dart/hello_world/world/main.dart
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
examples/dart/wget/main.dart
|
View
|
1
2
3
4
5
6
|
3 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
mojo/dart/embedder/test/dart_to_cpp_tests.dart
|
View
|
1
2
3
4
5
6
|
4 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
mojo/dart/test/bindings_generation_test.dart
|
View
|
1
2
3
4
5
6
|
3 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
 |
M |
mojo/dart/test/validation_test.dart
|
View
|
1
2
3
4
5
|
3 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
mojo/public/dart/src/application.dart
|
View
|
1
2
3
4
5
6
|
2 chunks |
+21 lines, -20 lines |
0 comments
|
Download
|
 |
M |
mojo/public/dart/src/application_connection.dart
|
View
|
1
2
3
4
5
6
|
5 chunks |
+28 lines, -20 lines |
0 comments
|
Download
|
 |
M |
mojo/public/dart/src/codec.dart
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
mojo/public/dart/src/event_stream.dart
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
mojo/public/dart/src/proxy.dart
|
View
|
1
2
3
4
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mojo/public/tools/bindings/generators/dart_templates/interface_definition.tmpl
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+90 lines, -72 lines |
2 comments
|
Download
|
 |
M |
services/dart/test/echo/main.dart
|
View
|
|
3 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
services/dart/test/pingpong/main.dart
|
View
|
1
2
3
4
5
6
|
3 chunks |
+43 lines, -37 lines |
0 comments
|
Download
|
 |
M |
services/dart/test/pingpong_target/main.dart
|
View
|
1
2
3
4
5
6
|
3 chunks |
+17 lines, -14 lines |
2 comments
|
Download
|
 |
M |
sky/framework/embedder.dart
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sky/tests/resources/event-sender.dart
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sky/tests/services/event-sender.sky
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sky/tests/services/iframe-embed-vmc.sky
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sky/tests/services/network.sky
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
Total messages: 25 (2 generated)
|