| OLD | NEW |
| 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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 class Console { | 1704 class Console { |
| 1705 | 1705 |
| 1706 static Console _safeConsole = new Console(); | 1706 static Console _safeConsole = new Console(); |
| 1707 | 1707 |
| 1708 bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"'); | 1708 bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"'); |
| 1709 | 1709 |
| 1710 @DomName('Console.memory') | 1710 @DomName('Console.memory') |
| 1711 MemoryInfo get memory => _isConsoleDefined ? | 1711 MemoryInfo get memory => _isConsoleDefined ? |
| 1712 JS('MemoryInfo', 'console.memory') : null; | 1712 JS('MemoryInfo', 'console.memory') : null; |
| 1713 | 1713 |
| 1714 @DomName('Console.profiles') | |
| 1715 List<ScriptProfile> get profiles => _isConsoleDefined ? | |
| 1716 JS('List<ScriptProfile>', 'console.profiles') : null; | |
| 1717 | |
| 1718 @DomName('Console.assertCondition') | 1714 @DomName('Console.assertCondition') |
| 1719 void assertCondition(bool condition, Object arg) => _isConsoleDefined ? | 1715 void assertCondition(bool condition, Object arg) => _isConsoleDefined ? |
| 1720 JS('void', 'console.assertCondition(#, #)', condition, arg) : null; | 1716 JS('void', 'console.assertCondition(#, #)', condition, arg) : null; |
| 1721 | 1717 |
| 1722 @DomName('Console.count') | 1718 @DomName('Console.count') |
| 1723 void count(Object arg) => _isConsoleDefined ? | 1719 void count(Object arg) => _isConsoleDefined ? |
| 1724 JS('void', 'console.count(#)', arg) : null; | 1720 JS('void', 'console.count(#)', arg) : null; |
| 1725 | 1721 |
| 1726 @DomName('Console.debug') | 1722 @DomName('Console.debug') |
| 1727 void debug(Object arg) => _isConsoleDefined ? | 1723 void debug(Object arg) => _isConsoleDefined ? |
| (...skipping 27889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29617 _position = nextPosition; | 29613 _position = nextPosition; |
| 29618 return true; | 29614 return true; |
| 29619 } | 29615 } |
| 29620 _current = null; | 29616 _current = null; |
| 29621 _position = _array.length; | 29617 _position = _array.length; |
| 29622 return false; | 29618 return false; |
| 29623 } | 29619 } |
| 29624 | 29620 |
| 29625 T get current => _current; | 29621 T get current => _current; |
| 29626 } | 29622 } |
| OLD | NEW |