| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 Iterable<String> get keys native "DOMStringMap_getKeys_Callback"; | 492 Iterable<String> get keys native "DOMStringMap_getKeys_Callback"; |
| 493 Iterable<String> get values => Maps.getValues(this); | 493 Iterable<String> get values => Maps.getValues(this); |
| 494 int get length => Maps.length(this); | 494 int get length => Maps.length(this); |
| 495 bool get isEmpty => Maps.isEmpty(this); | 495 bool get isEmpty => Maps.isEmpty(this); |
| 496 bool get isNotEmpty => Maps.isNotEmpty(this); | 496 bool get isNotEmpty => Maps.isNotEmpty(this); |
| 497 void addAll(Map<String, String> other) { | 497 void addAll(Map<String, String> other) { |
| 498 other.forEach((key, value) => this[key] = value); | 498 other.forEach((key, value) => this[key] = value); |
| 499 } | 499 } |
| 500 } | 500 } |
| 501 | 501 |
| 502 final _printClosure = window.console.log; | 502 final _printClosure = (s) => window.console.log(s); |
| 503 final _pureIsolatePrintClosure = (s) { | 503 final _pureIsolatePrintClosure = (s) { |
| 504 throw new UnimplementedError("Printing from a background isolate " | 504 throw new UnimplementedError("Printing from a background isolate " |
| 505 "is not supported in the browser"); | 505 "is not supported in the browser"); |
| 506 }; | 506 }; |
| 507 | 507 |
| 508 final _forwardingPrintClosure = _Utils.forwardingPrint; | 508 final _forwardingPrintClosure = _Utils.forwardingPrint; |
| 509 | 509 |
| 510 final _uriBaseClosure = () => Uri.parse(window.location.href); | 510 final _uriBaseClosure = () => Uri.parse(window.location.href); |
| 511 | 511 |
| 512 final _pureIsolateUriBaseClosure = () { | 512 final _pureIsolateUriBaseClosure = () { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 _scheduleImmediateHelper._schedule(callback); | 596 _scheduleImmediateHelper._schedule(callback); |
| 597 }; | 597 }; |
| 598 | 598 |
| 599 get _pureIsolateScheduleImmediateClosure => ((void callback()) => | 599 get _pureIsolateScheduleImmediateClosure => ((void callback()) => |
| 600 throw new UnimplementedError("scheduleMicrotask in background isolates " | 600 throw new UnimplementedError("scheduleMicrotask in background isolates " |
| 601 "are not supported in the browser")); | 601 "are not supported in the browser")); |
| 602 | 602 |
| 603 void _initializeCustomElement(Element e) { | 603 void _initializeCustomElement(Element e) { |
| 604 _Utils.initializeCustomElement(e); | 604 _Utils.initializeCustomElement(e); |
| 605 } | 605 } |
| OLD | NEW |