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

Unified Diff: tools/dom/templates/html/dart2js/impl_Console.darttemplate

Issue 11887006: Changed @domName annotation in comment to full fledge @DomName annotation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/html/dart2js/impl_Console.darttemplate
diff --git a/tools/dom/templates/html/dart2js/impl_Console.darttemplate b/tools/dom/templates/html/dart2js/impl_Console.darttemplate
index fd3c96c2beaddbd3d7f3f40a0098d77f9faae46f..eb796dbf0f8cd02be97fdb721198a058e8d728be 100644
--- a/tools/dom/templates/html/dart2js/impl_Console.darttemplate
+++ b/tools/dom/templates/html/dart2js/impl_Console.darttemplate
@@ -3,95 +3,115 @@
// BSD-style license that can be found in the LICENSE file.
part of html;
-
-/// @domName $DOMNAME
+$ANNOTATIONS
class Console {
static Console safeConsole = new Console();
bool get _isConsoleDefined => JS('bool', "typeof console != 'undefined'");
- /// @domName Console.memory; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.memory')
MemoryInfo get memory => _isConsoleDefined ?
JS('MemoryInfo', 'console.memory') : null;
- /// @domName Console.profiles; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.profiles')
List<ScriptProfile> get profiles => _isConsoleDefined ?
JS('List<ScriptProfile>', 'console.profiles') : null;
- /// @domName Console.assertCondition; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.assertCondition')
void assertCondition(bool condition, Object arg) => _isConsoleDefined ?
JS('void', 'console.assertCondition(#, #)', condition, arg) : null;
- /// @domName Console.count; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.count')
void count(Object arg) => _isConsoleDefined ?
JS('void', 'console.count(#)', arg) : null;
- /// @domName Console.debug; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.debug')
void debug(Object arg) => _isConsoleDefined ?
JS('void', 'console.debug(#)', arg) : null;
- /// @domName Console.dir; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.dir')
void dir(Object arg) => _isConsoleDefined ?
JS('void', 'console.debug(#)', arg) : null;
- /// @domName Console.dirxml; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.dirxml')
void dirxml(Object arg) => _isConsoleDefined ?
JS('void', 'console.dirxml(#)', arg) : null;
- /// @domName Console.error; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.error')
void error(Object arg) => _isConsoleDefined ?
JS('void', 'console.error(#)', arg) : null;
- /// @domName Console.group; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.group')
void group(Object arg) => _isConsoleDefined ?
JS('void', 'console.group(#)', arg) : null;
- /// @domName Console.groupCollapsed; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.groupCollapsed')
void groupCollapsed(Object arg) => _isConsoleDefined ?
JS('void', 'console.groupCollapsed(#)', arg) : null;
- /// @domName Console.groupEnd; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.groupEnd')
void groupEnd() => _isConsoleDefined ?
JS('void', 'console.groupEnd()') : null;
- /// @domName Console.info; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.info')
void info(Object arg) => _isConsoleDefined ?
JS('void', 'console.info(#)', arg) : null;
- /// @domName Console.log; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.log')
void log(Object arg) => _isConsoleDefined ?
JS('void', 'console.log(#)', arg) : null;
- /// @domName Console.markTimeline; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.markTimeline')
void markTimeline(Object arg) => _isConsoleDefined ?
JS('void', 'console.markTimeline(#)', arg) : null;
- /// @domName Console.profile; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.profile')
void profile(String title) => _isConsoleDefined ?
JS('void', 'console.profile(#)', title) : null;
- /// @domName Console.profileEnd; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.profileEnd')
void profileEnd(String title) => _isConsoleDefined ?
JS('void', 'console.profileEnd(#)', title) : null;
- /// @domName Console.time; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.time')
void time(String title) => _isConsoleDefined ?
JS('void', 'console.time(#)', title) : null;
- /// @domName Console.timeEnd; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.timeEnd')
void timeEnd(String title, Object arg) => _isConsoleDefined ?
JS('void', 'console.timeEnd(#, #)', title, arg) : null;
- /// @domName Console.timeStamp; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.timeStamp')
void timeStamp(Object arg) => _isConsoleDefined ?
JS('void', 'console.timeStamp(#)', arg) : null;
- /// @domName Console.trace; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.trace')
void trace(Object arg) => _isConsoleDefined ?
JS('void', 'console.trace(#)', arg) : null;
- /// @domName Console.warn; @docsEditable true
+ /// @docsEditable true
+ @DomName('Console.warn')
void warn(Object arg) => _isConsoleDefined ?
JS('void', 'console.warn(#)', arg) : null;
$!MEMBERS

Powered by Google App Engine
This is Rietveld 408576698