| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 html; | 5 part of html; |
| 6 | 6 |
| 7 class _ConsoleVariables { | 7 class _ConsoleVariables { |
| 8 Map<String, Object> _data = new Map<String, Object>(); | 8 Map<String, Object> _data = new Map<String, Object>(); |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 Iterable<String> get keys => _blink.Native_DOMStringMap_get_keys(this); | 505 Iterable<String> get keys => _blink.Native_DOMStringMap_get_keys(this); |
| 506 Iterable<String> get values => Maps.getValues(this); | 506 Iterable<String> get values => Maps.getValues(this); |
| 507 int get length => Maps.length(this); | 507 int get length => Maps.length(this); |
| 508 bool get isEmpty => Maps.isEmpty(this); | 508 bool get isEmpty => Maps.isEmpty(this); |
| 509 bool get isNotEmpty => Maps.isNotEmpty(this); | 509 bool get isNotEmpty => Maps.isNotEmpty(this); |
| 510 void addAll(Map<String, String> other) { | 510 void addAll(Map<String, String> other) { |
| 511 other.forEach((key, value) => this[key] = value); | 511 other.forEach((key, value) => this[key] = value); |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 | 514 |
| 515 final _printClosure = window.console.log; | 515 final _printClosure = (s) => window.console.log(s); |
| 516 final _pureIsolatePrintClosure = (s) { | 516 final _pureIsolatePrintClosure = (s) { |
| 517 throw new UnimplementedError("Printing from a background isolate " | 517 throw new UnimplementedError("Printing from a background isolate " |
| 518 "is not supported in the browser"); | 518 "is not supported in the browser"); |
| 519 }; | 519 }; |
| 520 | 520 |
| 521 final _forwardingPrintClosure = _Utils.forwardingPrint; | 521 final _forwardingPrintClosure = _Utils.forwardingPrint; |
| 522 | 522 |
| 523 final _uriBaseClosure = () => Uri.parse(window.location.href); | 523 final _uriBaseClosure = () => Uri.parse(window.location.href); |
| 524 | 524 |
| 525 final _pureIsolateUriBaseClosure = () { | 525 final _pureIsolateUriBaseClosure = () { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 _scheduleImmediateHelper._schedule(callback); | 609 _scheduleImmediateHelper._schedule(callback); |
| 610 }; | 610 }; |
| 611 | 611 |
| 612 get _pureIsolateScheduleImmediateClosure => ((void callback()) => | 612 get _pureIsolateScheduleImmediateClosure => ((void callback()) => |
| 613 throw new UnimplementedError("scheduleMicrotask in background isolates " | 613 throw new UnimplementedError("scheduleMicrotask in background isolates " |
| 614 "are not supported in the browser")); | 614 "are not supported in the browser")); |
| 615 | 615 |
| 616 void _initializeCustomElement(Element e) { | 616 void _initializeCustomElement(Element e) { |
| 617 _Utils.initializeCustomElement(e); | 617 _Utils.initializeCustomElement(e); |
| 618 } | 618 } |
| OLD | NEW |