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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
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:
Download patch
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 21c9709472d49b625509fad0bfe7a506f10f79f2..ff757983f1ada979f72b07ca5f82033b4dc477a1 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -13936,9 +13936,7 @@ class HttpRequest extends XmlHttpRequestEventTarget {
}
});
- xhr.onError.listen((e) {
- completer.completeError(e);
- });
+ xhr.onError.listen(completer.completeError);
if (sendData != null) {
xhr.send(sendData);
@@ -26565,13 +26563,13 @@ class Url extends NativeFieldWrapperClass1 {
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
return _createObjectURL_1(blob_OR_source_OR_stream);
}
- if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
+ if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
return _createObjectURL_2(blob_OR_source_OR_stream);
}
- if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
+ if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
return _createObjectURL_3(blob_OR_source_OR_stream);
}
- if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
+ if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
return _createObjectURL_4(blob_OR_source_OR_stream);
}
throw new ArgumentError("Incorrect number or type of arguments");
@@ -31162,7 +31160,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}) {
@@ -31225,7 +31223,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,
@@ -31261,7 +31259,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,
@@ -31390,7 +31388,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/html/dart2js/html_dart2js.dart ('k') | sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698