Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: tools/dom/templates/html/dart2js/impl_Console.darttemplate

Issue 17508002: Revert "Making all DOM types abstract and removing superfluous Dartium constructors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)class Console { 7 $(ANNOTATIONS)class Console {
8 Console();
9 8
10 static Console _safeConsole = new Console(); 9 static Console _safeConsole = new Console();
11 10
12 bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"'); 11 bool get _isConsoleDefined => JS('bool', 'typeof console != "undefined"');
13 12
14 @DomName('Console.memory') 13 @DomName('Console.memory')
15 MemoryInfo get memory => _isConsoleDefined ? 14 MemoryInfo get memory => _isConsoleDefined ?
16 JS('MemoryInfo', 'console.memory') : null; 15 JS('MemoryInfo', 'console.memory') : null;
17 16
18 @DomName('Console.assertCondition') 17 @DomName('Console.assertCondition')
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 84
86 @DomName('Console.trace') 85 @DomName('Console.trace')
87 void trace(Object arg) => _isConsoleDefined ? 86 void trace(Object arg) => _isConsoleDefined ?
88 JS('void', 'console.trace(#)', arg) : null; 87 JS('void', 'console.trace(#)', arg) : null;
89 88
90 @DomName('Console.warn') 89 @DomName('Console.warn')
91 void warn(Object arg) => _isConsoleDefined ? 90 void warn(Object arg) => _isConsoleDefined ?
92 JS('void', 'console.warn(#)', arg) : null; 91 JS('void', 'console.warn(#)', arg) : null;
93 $!MEMBERS 92 $!MEMBERS
94 } 93 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | tools/dom/templates/html/dart2js/impl_KeyboardEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698