| 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 final _MemoryInfoJs memory; | 12 final _MemoryInfoJs memory; |
| 13 | 13 |
| 14 final List profiles; | 14 final List profiles; |
| 15 | 15 |
| 16 void assertCondition(bool condition) native; | 16 void assertCondition(bool condition, Object arg) 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; |
| 25 | 25 |
| 26 void error(Object arg) native; | 26 void error(Object arg) native; |
| 27 | 27 |
| 28 void group() native; | 28 void group(Object arg) native; |
| 29 | 29 |
| 30 void groupCollapsed() native; | 30 void groupCollapsed(Object arg) native; |
| 31 | 31 |
| 32 void groupEnd() native; | 32 void groupEnd() native; |
| 33 | 33 |
| 34 void info(Object arg) native; | 34 void info(Object arg) native; |
| 35 | 35 |
| 36 void log(Object arg) native; | 36 void log(Object arg) native; |
| 37 | 37 |
| 38 void markTimeline() native; | 38 void markTimeline() native; |
| 39 | 39 |
| 40 void profile(String title) native; | 40 void profile(String title) native; |
| 41 | 41 |
| 42 void profileEnd(String title) native; | 42 void profileEnd(String title) native; |
| 43 | 43 |
| 44 void time(String title) native; | 44 void time(String title) native; |
| 45 | 45 |
| 46 void timeEnd(String title) native; | 46 void timeEnd(String title, Object arg) native; |
| 47 | 47 |
| 48 void timeStamp() native; | 48 void timeStamp(Object arg) native; |
| 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 |