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

Side by Side Diff: sdk/lib/async/zone.dart

Issue 27357002: Fix typo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload due to error. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.async; 5 part of dart.async;
6 6
7 typedef dynamic ZoneCallback(); 7 typedef dynamic ZoneCallback();
8 typedef dynamic ZoneUnaryCallback(arg); 8 typedef dynamic ZoneUnaryCallback(arg);
9 typedef dynamic ZoneBinaryCallback(arg1, arg2); 9 typedef dynamic ZoneBinaryCallback(arg1, arg2);
10 10
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)) { 515 Timer createPeriodicTimer(Zone zone, Duration period, void f(Timer timer)) {
516 _BaseZone parent = _degelationTarget; 516 _BaseZone parent = _degelationTarget;
517 while (parent._specification.createPeriodicTimer == null) { 517 while (parent._specification.createPeriodicTimer == null) {
518 parent = parent.parent; 518 parent = parent.parent;
519 } 519 }
520 return (parent._specification.createPeriodicTimer)( 520 return (parent._specification.createPeriodicTimer)(
521 parent, new _ZoneDelegate(parent.parent), zone, period, f); 521 parent, new _ZoneDelegate(parent.parent), zone, period, f);
522 } 522 }
523 523
524 void print(Zone zone, String line) { 524 void print(Zone zone, String line) {
525 _CustomizedZone parent = _degelationTarget; 525 _BaseZone parent = _degelationTarget;
526 while (parent._specification.print == null) { 526 while (parent._specification.print == null) {
527 parent = parent.parent; 527 parent = parent.parent;
528 } 528 }
529 (parent._specification.print)( 529 (parent._specification.print)(
530 parent, new _ZoneDelegate(parent.parent), zone, line); 530 parent, new _ZoneDelegate(parent.parent), zone, line);
531 } 531 }
532 532
533 Zone fork(Zone zone, ZoneSpecification specification, 533 Zone fork(Zone zone, ZoneSpecification specification,
534 Map<Symbol, dynamic> zoneValues) { 534 Map<Symbol, dynamic> zoneValues) {
535 _BaseZone parent = _degelationTarget; 535 _BaseZone parent = _degelationTarget;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 ZoneSpecification specification = 1011 ZoneSpecification specification =
1012 new ZoneSpecification(handleUncaughtError: errorHandler, 1012 new ZoneSpecification(handleUncaughtError: errorHandler,
1013 scheduleMicrotask: asyncHandler); 1013 scheduleMicrotask: asyncHandler);
1014 Zone zone = Zone.current.fork(specification: specification); 1014 Zone zone = Zone.current.fork(specification: specification);
1015 if (onError != null) { 1015 if (onError != null) {
1016 return zone.runGuarded(body); 1016 return zone.runGuarded(body);
1017 } else { 1017 } else {
1018 return zone.run(body); 1018 return zone.run(body);
1019 } 1019 }
1020 } 1020 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698