Console.hx 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /*
  2. * Copyright (C)2005-2017 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from mozilla\Console.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `Console` object provides access to the browser's debugging console (e.g., the Web Console in Firefox). The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided.
  26. Documentation [Console](https://developer.mozilla.org/en-US/docs/Web/API/Console) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/Console$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
  27. @see <https://developer.mozilla.org/en-US/docs/Web/API/Console>
  28. **/
  29. @:native("Console")
  30. extern class Console
  31. {
  32. /**
  33. For general output of logging information. You may use string substitution and additional arguments with this method.
  34. **/
  35. function log( data : haxe.extern.Rest<Dynamic> ) : Void;
  36. /**
  37. Informative logging information. You may use string substitution and additional arguments with this method.
  38. **/
  39. function info( data : haxe.extern.Rest<Dynamic> ) : Void;
  40. /**
  41. Outputs a warning message. You may use string substitution and additional arguments with this method.
  42. **/
  43. function warn( data : haxe.extern.Rest<Dynamic> ) : Void;
  44. /**
  45. Outputs an error message. You may use string substitution and additional arguments with this method.
  46. **/
  47. function error( data : haxe.extern.Rest<Dynamic> ) : Void;
  48. /**
  49. An alias for `error()`
  50. **/
  51. function exception( data : haxe.extern.Rest<Dynamic> ) : Void;
  52. /**
  53. An alias for `log()`
  54. **/
  55. function debug( data : haxe.extern.Rest<Dynamic> ) : Void;
  56. /**
  57. Displays tabular data as a table.
  58. **/
  59. function table( data : haxe.extern.Rest<Dynamic> ) : Void;
  60. /**
  61. Outputs a stack trace.
  62. **/
  63. function trace() : Void;
  64. /**
  65. Displays an interactive listing of the properties of a specified JavaScript object. This listing lets you use disclosure triangles to examine the contents of child objects.
  66. **/
  67. function dir( data : haxe.extern.Rest<Dynamic> ) : Void;
  68. /**
  69. Displays an XML/HTML Element representation of the specified object if possible or the JavaScript Object view if it is not.
  70. **/
  71. function dirxml( data : haxe.extern.Rest<Dynamic> ) : Void;
  72. /**
  73. Creates a new inline group, indenting all following output by another level. To move back out a level, call `groupEnd()`.
  74. **/
  75. function group( data : haxe.extern.Rest<Dynamic> ) : Void;
  76. /**
  77. Creates a new inline group, indenting all following output by another level; unlike `group()`, this starts with the inline group collapsed, requiring the use of a disclosure button to expand it. To move back out a level, call `groupEnd()`.
  78. **/
  79. function groupCollapsed( data : haxe.extern.Rest<Dynamic> ) : Void;
  80. /**
  81. Exits the current inline group.
  82. **/
  83. function groupEnd( data : haxe.extern.Rest<Dynamic> ) : Void;
  84. /**
  85. Starts a timer with a name specified as an input parameter. Up to 10,000 simultaneous timers can run on a given page.
  86. **/
  87. function time( ?time : Dynamic ) : Void;
  88. /**
  89. Stops the specified timer and logs the elapsed time in seconds since its start.
  90. **/
  91. function timeEnd( ?time : Dynamic ) : Void;
  92. /**
  93. Adds a marker to the browser's Timeline or Waterfall tool.
  94. **/
  95. function timeStamp( ?data : Dynamic ) : Void;
  96. /**
  97. Starts the browser's build-in profiler (for example, the Firefox performance tool). You can specify an optional name for the profile.
  98. **/
  99. function profile( data : haxe.extern.Rest<Dynamic> ) : Void;
  100. /**
  101. Stops the profiler. You can see the resulting profile in the browser's performance tool (for example, the Firefox performance tool).
  102. **/
  103. function profileEnd( data : haxe.extern.Rest<Dynamic> ) : Void;
  104. /**
  105. Log a message and stack trace to console if first argument is `false`.
  106. **/
  107. function assert( condition : Bool, data : haxe.extern.Rest<Dynamic> ) : Void;
  108. /**
  109. Log the number of times this line has been called with the given label.
  110. **/
  111. function count( data : haxe.extern.Rest<Dynamic> ) : Void;
  112. /**
  113. Clear the console.
  114. **/
  115. function clear() : Void;
  116. function markTimeline() : Void;
  117. function timeline() : Void;
  118. function timelineEnd() : Void;
  119. }