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

Unified Diff: tools/dom/src/EventStreamProvider.dart

Issue 27036002: Update dom streams with new signatures. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: tools/dom/src/EventStreamProvider.dart
diff --git a/tools/dom/src/EventStreamProvider.dart b/tools/dom/src/EventStreamProvider.dart
index 5ab9ce406f6f7328a66de2ffd02e4867af73a4ff..c794e0d0c9be6fe64509d76557f4624f259093f0 100644
--- a/tools/dom/src/EventStreamProvider.dart
+++ b/tools/dom/src/EventStreamProvider.dart
@@ -21,7 +21,7 @@ class _EventStream<T extends Event> extends Stream<T> {
bool get isBroadcast => true;
StreamSubscription<T> listen(void onData(T event),
- { void onError(error),
+ { Function onError,
void onDone(),
bool cancelOnError}) {
@@ -84,7 +84,7 @@ class _ElementListEventStreamImpl<T extends Event> extends Stream<T>
// Delegate all regular Stream behavor to our wrapped Stream.
StreamSubscription<T> listen(void onData(T event),
- { void onError(error),
+ { Function onError,
void onDone(),
bool cancelOnError}) =>
_stream.listen(onData, onError: onError, onDone: onDone,
@@ -120,7 +120,7 @@ class _CustomEventStreamImpl<T extends Event> extends Stream<T>
// Delegate all regular Stream behavior to our wrapped Stream.
StreamSubscription<T> listen(void onData(T event),
- { void onError(error),
+ { Function onError,
void onDone(),
bool cancelOnError}) {
return _streamController.stream.listen(onData, onError: onError,
@@ -249,7 +249,7 @@ class _EventStreamSubscription<T extends Event> extends StreamSubscription<T> {
}
/// Has no effect.
- void onError(void handleError(error)) {}
+ void onError(Function handleError) {}
/// Has no effect.
void onDone(void handleDone()) {}
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | tools/dom/templates/html/impl/impl_IDBFactory.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698