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

Unified Diff: mojo/public/dart/src/event_stream.dart

Issue 959993002: Dart: Removes name conflicts from generated bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/dart/src/event_stream.dart
diff --git a/mojo/public/dart/src/event_stream.dart b/mojo/public/dart/src/event_stream.dart
index 610285a358d3eed64f1e5f6c4d236a1b0bb203c6..6669ac1e156ffcd1fad86711274a4707e10baf4a 100644
--- a/mojo/public/dart/src/event_stream.dart
+++ b/mojo/public/dart/src/event_stream.dart
@@ -4,7 +4,7 @@
part of core;
-class MojoEventStream extends Stream<int> {
+class MojoEventStream extends Stream<List<int>> {
// The underlying Mojo handle.
MojoHandle _handle;
@@ -118,11 +118,7 @@ class MojoEventStream extends Stream<int> {
String toString() => "$_handle";
}
-abstract class Listener {
- StreamSubscription<List<int>> listen();
-}
-
-class MojoEventStreamListener implements Listener {
+class MojoEventStreamListener {
MojoMessagePipeEndpoint _endpoint;
MojoEventStream _eventStream;
bool _isOpen = false;

Powered by Google App Engine
This is Rietveld 408576698