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 class _ConsoleJs | 5 class _ConsoleJs |
6 // Implement DOMType directly. Console is sometimes a singleton | 6 // Implement DOMType directly. Console is sometimes a singleton |
7 // bag-of-properties without a prototype, so it can't inherit from | 7 // bag-of-properties without a prototype, so it can't inherit from |
8 // DOMTypeJs. | 8 // DOMTypeJs. |
9 implements Console, DOMType | 9 implements Console, DOMType |
10 native "=(typeof console == 'undefined' ? {} : console)" { | 10 native "=(typeof console == 'undefined' ? {} : console)" { |
11 | 11 |
12 _MemoryInfoJs get memory() native "return this.memory;"; | 12 final _MemoryInfoJs memory; |
13 | 13 |
14 List get profiles() native "return this.profiles;"; | 14 final List profiles; |
15 | 15 |
16 void assertCondition(bool condition) native; | 16 void assertCondition(bool condition) native; |
17 | 17 |
18 void count() native; | 18 void count() native; |
19 | 19 |
20 void debug(Object arg) native; | 20 void debug(Object arg) native; |
21 | 21 |
22 void dir() native; | 22 void dir() native; |
23 | 23 |
24 void dirxml() native; | 24 void dirxml() native; |
(...skipping 24 matching lines...) Expand all Loading... |
49 | 49 |
50 void trace(Object arg) native; | 50 void trace(Object arg) native; |
51 | 51 |
52 void warn(Object arg) native; | 52 void warn(Object arg) native; |
53 | 53 |
54 | 54 |
55 // Keep these in sync with frog_DOMTypeJs.dart. | 55 // Keep these in sync with frog_DOMTypeJs.dart. |
56 var dartObjectLocalStorage; | 56 var dartObjectLocalStorage; |
57 String get typeName() native; | 57 String get typeName() native; |
58 } | 58 } |
OLD | NEW |