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

Issue 982673002: Dart: Removes need to call listen(). (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, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Dart: Removes need to call listen(). Also, changes onClosed to onError, and changes it from an optional named parameter to listen() to a setter on which handlers can be enqueued. BUG= R=hansmuller@google.com Committed: https://chromium.googlesource.com/external/mojo/+/7d85a1d59b61d96b1b7104517b0b986578455644

Patch Set 1 #

Patch Set 2 : Removed unused optional arguments #

Patch Set 3 : Merge #

Total comments: 3

Patch Set 4 : Don't pile up callbacks #

Total comments: 2

Patch Set 5 : Formatting #

Patch Set 6 : Merge and Format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -232 lines) Patch
M examples/dart/hello_world/hello/main.dart View 1 chunk +1 line, -1 line 0 comments Download
M mojo/dart/embedder/test/dart_to_cpp_tests.dart View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M mojo/dart/test/bindings_generation_test.dart View 1 2 3 4 5 chunks +13 lines, -21 lines 0 comments Download
M mojo/dart/test/interface_test.dart View 1 2 3 4 7 chunks +7 lines, -24 lines 0 comments Download
M mojo/dart/test/validation_test.dart View 1 2 3 4 3 chunks +9 lines, -12 lines 0 comments Download
M mojo/public/dart/src/application.dart View 1 2 3 4 6 chunks +26 lines, -56 lines 0 comments Download
M mojo/public/dart/src/application_connection.dart View 1 2 3 4 5 3 chunks +12 lines, -25 lines 0 comments Download
M mojo/public/dart/src/codec.dart View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M mojo/public/dart/src/event_stream.dart View 1 2 3 4 5 4 chunks +8 lines, -15 lines 0 comments Download
M mojo/public/dart/src/proxy.dart View 1 2 3 4 5 1 chunk +4 lines, -6 lines 0 comments Download
M mojo/public/dart/src/stub.dart View 1 2 3 4 5 1 chunk +3 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/generators/dart_templates/interface_definition.tmpl View 1 2 3 4 5 3 chunks +13 lines, -37 lines 0 comments Download
M services/dart/dart_apptests/pingpong_apptests.dart View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M services/dart/test/echo/main.dart View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M services/dart/test/pingpong/main.dart View 1 2 3 4 5 chunks +6 lines, -13 lines 0 comments Download
M services/dart/test/pingpong_target/main.dart View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
zra
5 years, 9 months ago (2015-03-05 00:09:58 UTC) #2
hansmuller1
https://codereview.chromium.org/982673002/diff/40001/examples/dart/hello_world/hello/main.dart File examples/dart/hello_world/hello/main.dart (right): https://codereview.chromium.org/982673002/diff/40001/examples/dart/hello_world/hello/main.dart#newcode26 examples/dart/hello_world/hello/main.dart:26: c.onError = close; I like this change. Another incremental ...
5 years, 9 months ago (2015-03-05 00:35:32 UTC) #4
zra
https://codereview.chromium.org/982673002/diff/40001/mojo/public/dart/src/event_stream.dart File mojo/public/dart/src/event_stream.dart (right): https://codereview.chromium.org/982673002/diff/40001/mojo/public/dart/src/event_stream.dart#newcode220 mojo/public/dart/src/event_stream.dart:220: Function cachedOnError = _onError; On 2015/03/05 00:35:32, hansmuller1 wrote: ...
5 years, 9 months ago (2015-03-05 16:39:29 UTC) #5
zra
Removed the piling up callbacks. PTAL.
5 years, 9 months ago (2015-03-05 21:05:16 UTC) #6
hansmuller1
https://codereview.chromium.org/982673002/diff/60001/mojo/public/dart/src/event_stream.dart File mojo/public/dart/src/event_stream.dart (right): https://codereview.chromium.org/982673002/diff/60001/mojo/public/dart/src/event_stream.dart#newcode136 mojo/public/dart/src/event_stream.dart:136: MojoEventStreamListener.fromEndpoint(MojoMessagePipeEndpoint endpoint) We've run into the need for |doListen: ...
5 years, 9 months ago (2015-03-06 17:12:38 UTC) #7
zra
https://codereview.chromium.org/982673002/diff/60001/mojo/public/dart/src/event_stream.dart File mojo/public/dart/src/event_stream.dart (right): https://codereview.chromium.org/982673002/diff/60001/mojo/public/dart/src/event_stream.dart#newcode136 mojo/public/dart/src/event_stream.dart:136: MojoEventStreamListener.fromEndpoint(MojoMessagePipeEndpoint endpoint) On 2015/03/06 17:12:38, hansmuller1 wrote: > We've ...
5 years, 9 months ago (2015-03-06 21:12:00 UTC) #8
hansmuller1
We've talked this over and are OK with dropping doListen. Thanks for your patience!
5 years, 9 months ago (2015-03-06 22:48:50 UTC) #9
hansmuller1
LGTM
5 years, 9 months ago (2015-03-06 22:50:01 UTC) #10
zra
5 years, 9 months ago (2015-03-07 00:27:42 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
7d85a1d59b61d96b1b7104517b0b986578455644 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698