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

Issue 968243003: Dart: Adds optional named arguments for creating bindings. (Closed)

Created:
5 years, 9 months ago by zra
Modified:
5 years, 9 months ago
Reviewers:
hansmuller, hansmuller1, sky
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, esprehn, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Dart: Adds optional named arguments for creating bindings. Also: - Ensures that Application and _ApplicationImpl clean up state when the other end goes down. - Renames generated Stubs' "delegate" field to "impl". - Plumbs doClosed callback through ApplicationConnection - Plumbs resolvedUrl through Application. BUG= R=hansmuller@google.com Committed: https://chromium.googlesource.com/external/mojo/+/78d979e29b7ea6c91223c6569483543c5e0b4944

Patch Set 1 #

Total comments: 7

Patch Set 2 : Binding -> Stub, delegate -> impl #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : Merge #

Patch Set 5 : Format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -147 lines) Patch
M examples/dart/hello_world/hello/main.dart View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M mojo/dart/embedder/test/dart_to_cpp_tests.dart View 1 1 chunk +1 line, -3 lines 0 comments Download
M mojo/dart/test/bindings_generation_test.dart View 1 2 3 4 4 chunks +19 lines, -20 lines 0 comments Download
M mojo/dart/test/interface_test.dart View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
M mojo/dart/test/validation_test.dart View 1 2 3 4 4 chunks +14 lines, -14 lines 0 comments Download
M mojo/public/dart/src/application.dart View 1 2 3 4 5 chunks +49 lines, -16 lines 0 comments Download
M mojo/public/dart/src/application_connection.dart View 1 2 3 4 4 chunks +25 lines, -8 lines 0 comments Download
M mojo/public/dart/src/event_stream.dart View 1 2 3 4 3 chunks +17 lines, -4 lines 0 comments Download
M mojo/public/dart/src/proxy.dart View 1 2 3 4 3 chunks +20 lines, -17 lines 0 comments Download
M mojo/public/dart/src/stub.dart View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/dart_templates/interface_definition.tmpl View 1 8 chunks +48 lines, -21 lines 0 comments Download
M services/dart/test/echo/main.dart View 1 2 3 4 2 chunks +6 lines, -8 lines 0 comments Download
M services/dart/test/pingpong/main.dart View 1 2 3 4 7 chunks +13 lines, -15 lines 0 comments Download
M services/dart/test/pingpong_target/main.dart View 1 2 3 4 3 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
zra
Based on sky's suggestions after submitting the last CL: https://codereview.chromium.org/959993002/
5 years, 9 months ago (2015-03-02 19:13:55 UTC) #2
sky
https://codereview.chromium.org/968243003/diff/1/mojo/public/dart/src/application.dart File mojo/public/dart/src/application.dart (right): https://codereview.chromium.org/968243003/diff/1/mojo/public/dart/src/application.dart#newcode17 mojo/public/dart/src/application.dart:17: // necessary cleanup is performed on a PEER_CLOSED signal. ...
5 years, 9 months ago (2015-03-02 20:28:22 UTC) #3
hansmuller1
https://codereview.chromium.org/968243003/diff/1/sky/framework/embedder.dart File sky/framework/embedder.dart (right): https://codereview.chromium.org/968243003/diff/1/sky/framework/embedder.dart#newcode37 sky/framework/embedder.dart:37: var binding = new ServiceProviderBinding.unbound(); Calling the stub class ...
5 years, 9 months ago (2015-03-02 20:42:18 UTC) #5
hansmuller1
5 years, 9 months ago (2015-03-02 20:42:20 UTC) #6
zra
There is some confusion in terminology that I'm not sure yet how to resolve. A ...
5 years, 9 months ago (2015-03-02 20:52:45 UTC) #7
zra
Sorry, just want to make sure I understand. Is the naming currently in this CL ...
5 years, 9 months ago (2015-03-03 17:57:56 UTC) #8
hansmuller1
On 2015/03/03 17:57:56, zra wrote: > Sorry, just want to make sure I understand. Is ...
5 years, 9 months ago (2015-03-03 18:27:18 UTC) #9
zra
Okay =) Renamed Binding -> Stub and delegate -> impl.
5 years, 9 months ago (2015-03-03 19:22:04 UTC) #10
sky
https://codereview.chromium.org/968243003/diff/20001/mojo/public/dart/src/application.dart File mojo/public/dart/src/application.dart (right): https://codereview.chromium.org/968243003/diff/20001/mojo/public/dart/src/application.dart#newcode47 mojo/public/dart/src/application.dart:47: if(onClosed != null) { nit: space after if? https://codereview.chromium.org/968243003/diff/20001/mojo/public/dart/src/application_connection.dart ...
5 years, 9 months ago (2015-03-03 20:14:13 UTC) #11
hansmuller1
LGTM https://codereview.chromium.org/968243003/diff/20001/examples/dart/hello_world/hello/main.dart File examples/dart/hello_world/hello/main.dart (right): https://codereview.chromium.org/968243003/diff/20001/examples/dart/hello_world/hello/main.dart#newcode20 examples/dart/hello_world/hello/main.dart:20: c.listen(onClosed: close); I like this. It's subtly different ...
5 years, 9 months ago (2015-03-03 20:32:16 UTC) #12
zra
https://codereview.chromium.org/968243003/diff/20001/examples/dart/hello_world/hello/main.dart File examples/dart/hello_world/hello/main.dart (right): https://codereview.chromium.org/968243003/diff/20001/examples/dart/hello_world/hello/main.dart#newcode20 examples/dart/hello_world/hello/main.dart:20: c.listen(onClosed: close); On 2015/03/03 20:32:16, hansmuller1 wrote: > I ...
5 years, 9 months ago (2015-03-03 21:28:54 UTC) #13
zra
5 years, 9 months ago (2015-03-04 16:52:54 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
78d979e29b7ea6c91223c6569483543c5e0b4944 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698