Navigator.hx 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (C)2005-2013 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, do not edit!
  23. package js.html;
  24. /** Returns a reference to the navigator object, which can be queried for information about the application running the script.<br><br>
  25. Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/window.navigator">MDN</a>. */
  26. @:native("Navigator")
  27. extern class Navigator
  28. {
  29. /** Returns the internal "code" name of the current browser. Do not rely on this property to return the correct value. */
  30. var appCodeName(default,null) : String;
  31. /** Returns the official name of the browser. Do not rely on this property to return the correct value. */
  32. var appName(default,null) : String;
  33. /** Returns the version of the browser as a string. Do not rely on this property to return the correct value. */
  34. var appVersion(default,null) : String;
  35. var battery(default,null) : BatteryManager;
  36. /** Returns a boolean indicating whether cookies are enabled in the browser or not. */
  37. var cookieEnabled(default,null) : Bool;
  38. var geolocation(default,null) : Geolocation;
  39. /** Returns a string representing the language version of the browser. */
  40. var language(default,null) : String;
  41. /** Returns a list of the MIME types supported by the browser. */
  42. var mimeTypes(default,null) : DOMMimeTypeArray;
  43. /** Returns a boolean indicating whether the browser is working online. */
  44. var onLine(default,null) : Bool;
  45. /** Returns a string representing the platform of the browser. */
  46. var platform(default,null) : String;
  47. /** Returns an array of the plugins installed in the browser. */
  48. var plugins(default,null) : DOMPluginArray;
  49. /** Returns the product name of the current browser. (e.g. "Gecko") */
  50. var product(default,null) : String;
  51. /** Returns the build number of the current browser (e.g. "20060909") */
  52. var productSub(default,null) : String;
  53. /** Returns the user agent string for the current browser. */
  54. var userAgent(default,null) : String;
  55. /** Returns the vendor name of the current browser (e.g. "Netscape6") */
  56. var vendor(default,null) : String;
  57. /** Returns the vendor version number (e.g. "6.1") */
  58. var vendorSub(default,null) : String;
  59. function getGamepads() : GamepadList;
  60. function getStorageUpdates() : Void;
  61. function getUserMedia( options : Dynamic, successCallback : js.html.rtc.NavigatorUserMediaSuccessCallback, ?errorCallback : js.html.rtc.NavigatorUserMediaErrorCallback ) : Void;
  62. function javaEnabled() : Bool;
  63. }