PerformanceNavigation.hx 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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\PerformanceNavigation.webidl. Do not edit!
  23. package js.html;
  24. /**
  25. The `PerformanceNavigation` interface represents information about how the navigation to the current document was done.
  26. Documentation [PerformanceNavigation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation$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/PerformanceNavigation>
  28. **/
  29. @:native("PerformanceNavigation")
  30. extern class PerformanceNavigation
  31. {
  32. static inline var TYPE_NAVIGATE : Int = 0;
  33. static inline var TYPE_RELOAD : Int = 1;
  34. static inline var TYPE_BACK_FORWARD : Int = 2;
  35. static inline var TYPE_RESERVED : Int = 255;
  36. /**
  37. Is an <code>unsigned short</code> containing a constant describing how the navigation to this page was done. Possible values are:
  38. <table class="standard-table">
  39. <tr>
  40. Value
  41. Constant name
  42. Meaning
  43. </tr>
  44. <tr>
  45. <td><code>0</code></td>
  46. <td><code>TYPE_NAVIGATE</code></td>
  47. <td>The page was accessed by following a link, a bookmark, a form submission, a script, or typing the URL in the address bar.</td>
  48. </tr>
  49. <tr>
  50. <td><code>1</code></td>
  51. <td><code>TYPE_RELOAD</code></td>
  52. <td>The page was accessed by clicking the Reload button or via the <code>Location.reload()</code> method.</td>
  53. </tr>
  54. <tr>
  55. <td><code>2</code></td>
  56. <td><code>TYPE_BACK_FORWARD</code></td>
  57. <td>The page was accessed by navigating into the history.</td>
  58. </tr>
  59. <tr>
  60. <td><code>255</code></td>
  61. <td><code>TYPE_RESERVED</code></td>
  62. <td>Any other way.</td>
  63. </tr>
  64. </table>
  65. **/
  66. var type(default,null) : Int;
  67. /**
  68. Is an `unsigned short` representing the number of REDIRECTs done before reaching the page.
  69. **/
  70. var redirectCount(default,null) : Int;
  71. }