OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 class _ConsoleJs | |
6 // Implement DOMType directly. Console is sometimes a singleton | |
7 // bag-of-properties without a prototype, so it can't inherit from | |
8 // DOMTypeJs. | |
9 implements Console, DOMType | |
10 native "=(typeof console == 'undefined' ? {} : console)" { | |
11 | |
12 final _MemoryInfoJs memory; | |
13 | |
14 final List profiles; | |
15 | |
16 void assertCondition(bool condition, Object arg) native; | |
17 | |
18 void count() native; | |
19 | |
20 void debug(Object arg) native; | |
21 | |
22 void dir() native; | |
23 | |
24 void dirxml() native; | |
25 | |
26 void error(Object arg) native; | |
27 | |
28 void group(Object arg) native; | |
29 | |
30 void groupCollapsed(Object arg) native; | |
31 | |
32 void groupEnd() native; | |
33 | |
34 void info(Object arg) native; | |
35 | |
36 void log(Object arg) native; | |
37 | |
38 void markTimeline() native; | |
39 | |
40 void profile(String title) native; | |
41 | |
42 void profileEnd(String title) native; | |
43 | |
44 void time(String title) native; | |
45 | |
46 void timeEnd(String title, Object arg) native; | |
47 | |
48 void timeStamp(Object arg) native; | |
49 | |
50 void trace(Object arg) native; | |
51 | |
52 void warn(Object arg) native; | |
53 | |
54 | |
55 // Keep these in sync with frog_DOMTypeJs.dart. | |
56 var dartObjectLocalStorage; | |
57 String get typeName() native; | |
58 } | |
OLD | NEW |