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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 15820013: Fixing type of ApplicationCache.onProgress. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 @DomName('DOMApplicationCache.noupdateEvent') 242 @DomName('DOMApplicationCache.noupdateEvent')
243 @DocsEditable 243 @DocsEditable
244 static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvi der<Event>('noupdate'); 244 static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvi der<Event>('noupdate');
245 245
246 @DomName('DOMApplicationCache.obsoleteEvent') 246 @DomName('DOMApplicationCache.obsoleteEvent')
247 @DocsEditable 247 @DocsEditable
248 static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvi der<Event>('obsolete'); 248 static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvi der<Event>('obsolete');
249 249
250 @DomName('DOMApplicationCache.progressEvent') 250 @DomName('DOMApplicationCache.progressEvent')
251 @DocsEditable 251 @DocsEditable
252 static const EventStreamProvider<Event> progressEvent = const EventStreamProvi der<Event>('progress'); 252 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr eamProvider<ProgressEvent>('progress');
253 253
254 @DomName('DOMApplicationCache.updatereadyEvent') 254 @DomName('DOMApplicationCache.updatereadyEvent')
255 @DocsEditable 255 @DocsEditable
256 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr ovider<Event>('updateready'); 256 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr ovider<Event>('updateready');
257 257
258 /// Checks if this type is supported on the current platform. 258 /// Checks if this type is supported on the current platform.
259 static bool get supported => JS('bool', '!!(window.applicationCache)'); 259 static bool get supported => JS('bool', '!!(window.applicationCache)');
260 260
261 @DomName('DOMApplicationCache.CHECKING') 261 @DomName('DOMApplicationCache.CHECKING')
262 @DocsEditable 262 @DocsEditable
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 @DomName('DOMApplicationCache.onnoupdate') 331 @DomName('DOMApplicationCache.onnoupdate')
332 @DocsEditable 332 @DocsEditable
333 Stream<Event> get onNoUpdate => noUpdateEvent.forTarget(this); 333 Stream<Event> get onNoUpdate => noUpdateEvent.forTarget(this);
334 334
335 @DomName('DOMApplicationCache.onobsolete') 335 @DomName('DOMApplicationCache.onobsolete')
336 @DocsEditable 336 @DocsEditable
337 Stream<Event> get onObsolete => obsoleteEvent.forTarget(this); 337 Stream<Event> get onObsolete => obsoleteEvent.forTarget(this);
338 338
339 @DomName('DOMApplicationCache.onprogress') 339 @DomName('DOMApplicationCache.onprogress')
340 @DocsEditable 340 @DocsEditable
341 Stream<Event> get onProgress => progressEvent.forTarget(this); 341 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this);
342 342
343 @DomName('DOMApplicationCache.onupdateready') 343 @DomName('DOMApplicationCache.onupdateready')
344 @DocsEditable 344 @DocsEditable
345 Stream<Event> get onUpdateReady => updateReadyEvent.forTarget(this); 345 Stream<Event> get onUpdateReady => updateReadyEvent.forTarget(this);
346 } 346 }
347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
348 // for details. All rights reserved. Use of this source code is governed by a 348 // for details. All rights reserved. Use of this source code is governed by a
349 // BSD-style license that can be found in the LICENSE file. 349 // BSD-style license that can be found in the LICENSE file.
350 350
351 351
(...skipping 28964 matching lines...) Expand 10 before | Expand all | Expand 10 after
29316 _position = nextPosition; 29316 _position = nextPosition;
29317 return true; 29317 return true;
29318 } 29318 }
29319 _current = null; 29319 _current = null;
29320 _position = _array.length; 29320 _position = _array.length;
29321 return false; 29321 return false;
29322 } 29322 }
29323 29323
29324 T get current => _current; 29324 T get current => _current;
29325 } 29325 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698