Browse Source

Package up WebSQL, WebRTC, and the FileSystem APIs.

From 9bb2218ff.
Bruno Garcia 12 năm trước cách đây
mục cha
commit
800bdc9906
73 tập tin đã thay đổi với 263 bổ sung263 xóa
  1. 1 1
      std/js/html/DOMURL.hx
  2. 3 3
      std/js/html/DOMWindow.hx
  3. 1 1
      std/js/html/DataTransferItem.hx
  4. 1 1
      std/js/html/FileReader.hx
  5. 1 1
      std/js/html/InputElement.hx
  6. 1 1
      std/js/html/Navigator.hx
  7. 0 26
      std/js/html/RTCSessionDescriptionCallback.hx
  8. 0 26
      std/js/html/SQLStatementCallback.hx
  9. 0 26
      std/js/html/SQLStatementErrorCallback.hx
  10. 0 26
      std/js/html/SQLTransactionSyncCallback.hx
  11. 6 6
      std/js/html/WorkerContext.hx
  12. 1 1
      std/js/html/audio/AudioContext.hx
  13. 1 1
      std/js/html/audio/MediaStreamAudioSourceNode.hx
  14. 2 2
      std/js/html/fs/DirectoryEntry.hx
  15. 1 1
      std/js/html/fs/DirectoryEntrySync.hx
  16. 1 1
      std/js/html/fs/DirectoryReader.hx
  17. 1 1
      std/js/html/fs/DirectoryReaderSync.hx
  18. 1 1
      std/js/html/fs/EntriesCallback.hx
  19. 3 3
      std/js/html/fs/Entry.hx
  20. 1 1
      std/js/html/fs/EntryArray.hx
  21. 1 1
      std/js/html/fs/EntryArraySync.hx
  22. 1 1
      std/js/html/fs/EntryCallback.hx
  23. 2 2
      std/js/html/fs/EntrySync.hx
  24. 2 2
      std/js/html/fs/ErrorCallback.hx
  25. 2 2
      std/js/html/fs/FileCallback.hx
  26. 1 1
      std/js/html/fs/FileEntry.hx
  27. 2 2
      std/js/html/fs/FileEntrySync.hx
  28. 1 1
      std/js/html/fs/FileError.hx
  29. 1 1
      std/js/html/fs/FileException.hx
  30. 2 2
      std/js/html/fs/FileSystem.hx
  31. 2 2
      std/js/html/fs/FileSystemCallback.hx
  32. 2 2
      std/js/html/fs/FileSystemSync.hx
  33. 9 9
      std/js/html/fs/FileWriter.hx
  34. 1 1
      std/js/html/fs/FileWriterCallback.hx
  35. 2 2
      std/js/html/fs/FileWriterSync.hx
  36. 1 1
      std/js/html/fs/Metadata.hx
  37. 1 1
      std/js/html/fs/MetadataCallback.hx
  38. 9 9
      std/js/html/rtc/DataChannel.hx
  39. 3 3
      std/js/html/rtc/DataChannelEvent.hx
  40. 2 2
      std/js/html/rtc/ErrorCallback.hx
  41. 2 2
      std/js/html/rtc/IceCandidate.hx
  42. 3 3
      std/js/html/rtc/IceCandidateEvent.hx
  43. 1 1
      std/js/html/rtc/LocalMediaStream.hx
  44. 3 3
      std/js/html/rtc/MediaStream.hx
  45. 2 2
      std/js/html/rtc/MediaStreamEvent.hx
  46. 1 1
      std/js/html/rtc/MediaStreamList.hx
  47. 5 5
      std/js/html/rtc/MediaStreamTrack.hx
  48. 2 2
      std/js/html/rtc/MediaStreamTrackEvent.hx
  49. 4 4
      std/js/html/rtc/MediaStreamTrackList.hx
  50. 1 1
      std/js/html/rtc/NavigatorUserMediaError.hx
  51. 1 1
      std/js/html/rtc/NavigatorUserMediaErrorCallback.hx
  52. 1 1
      std/js/html/rtc/NavigatorUserMediaSuccessCallback.hx
  53. 19 19
      std/js/html/rtc/PeerConnection.hx
  54. 2 2
      std/js/html/rtc/SessionDescription.hx
  55. 26 0
      std/js/html/rtc/SessionDescriptionCallback.hx
  56. 2 2
      std/js/html/rtc/StatsCallback.hx
  57. 2 2
      std/js/html/rtc/StatsElement.hx
  58. 4 4
      std/js/html/rtc/StatsReport.hx
  59. 3 3
      std/js/html/rtc/StatsResponse.hx
  60. 4 4
      std/js/html/sql/Database.hx
  61. 1 1
      std/js/html/sql/DatabaseCallback.hx
  62. 4 4
      std/js/html/sql/DatabaseSync.hx
  63. 2 2
      std/js/html/sql/Error.hx
  64. 2 2
      std/js/html/sql/Exception.hx
  65. 3 3
      std/js/html/sql/ResultSet.hx
  66. 2 2
      std/js/html/sql/ResultSetRowList.hx
  67. 26 0
      std/js/html/sql/StatementCallback.hx
  68. 26 0
      std/js/html/sql/StatementErrorCallback.hx
  69. 3 3
      std/js/html/sql/Transaction.hx
  70. 2 2
      std/js/html/sql/TransactionCallback.hx
  71. 26 0
      std/js/html/sql/TransactionErrorCallback.hx
  72. 3 3
      std/js/html/sql/TransactionSync.hx
  73. 2 2
      std/js/html/sql/TransactionSyncCallback.hx

+ 1 - 1
std/js/html/DOMURL.hx

@@ -29,7 +29,7 @@ extern class DOMURL
     function new () :Void;
 
     @:overload(function (source :MediaSource) :String {})
-    @:overload(function (stream :MediaStream) :String {})
+    @:overload(function (stream :js.html.rtc.MediaStream) :String {})
     static function createObjectURL (blob :Blob) :String;
 
     static function revokeObjectURL (url :String) :Void;

+ 3 - 3
std/js/html/DOMWindow.hx

@@ -404,7 +404,7 @@ extern class DOMWindow extends EventTarget
 
     function open (url :String, name :String, ?options :String) :DOMWindow;
 
-    function openDatabase (name :String, version :String, displayName :String, estimatedSize :Int, ?creationCallback :DatabaseCallback) :Database;
+    function openDatabase (name :String, version :String, displayName :String, estimatedSize :Int, ?creationCallback :js.html.sql.DatabaseCallback) :js.html.sql.Database;
 
     /** Provides a secure means for one window to send a string of data to another window, which need not be within the same domain as the first, in a secure manner. Throws DOMException. */
     @:overload(function (message :Dynamic, targetOrigin :String) :Void {})
@@ -419,13 +419,13 @@ extern class DOMWindow extends EventTarget
     @:overload(function (callback_ :RequestAnimationFrameCallback) :Int {})
     function requestAnimationFrame (callback_ :RequestAnimationFrameCallback) :Int;
 
-    function requestFileSystem (type :Int, size :Int, successCallback :FileSystemCallback, ?errorCallback :ErrorCallback) :Void;
+    function requestFileSystem (type :Int, size :Int, successCallback :js.html.fs.FileSystemCallback, ?errorCallback :js.html.fs.ErrorCallback) :Void;
 
     function resizeBy (x :Float, y :Float) :Void;
 
     function resizeTo (width :Float, height :Float) :Void;
 
-    function resolveLocalFileSystemURL (url :String, successCallback :EntryCallback, ?errorCallback :ErrorCallback) :Void;
+    function resolveLocalFileSystemURL (url :String, successCallback :js.html.fs.EntryCallback, ?errorCallback :js.html.fs.ErrorCallback) :Void;
 
     function scroll (x :Int, y :Int) :Void;
 

+ 1 - 1
std/js/html/DataTransferItem.hx

@@ -30,7 +30,7 @@ extern class DataTransferItem
 
     var type (default,null) :String;
 
-    function getAsEntry () :Entry;
+    function getAsEntry () :js.html.fs.Entry;
 
     function getAsFile () :Blob;
 

+ 1 - 1
std/js/html/FileReader.hx

@@ -46,7 +46,7 @@ extern class FileReader extends EventTarget
     static inline var LOADING :Int = 1;
 
     /** The error that occurred while reading the file. <strong>Read only.</strong> */
-    var error (default,null) :FileError;
+    var error (default,null) :js.html.fs.FileError;
 
     /** Called when the read operation is aborted. */
     var onabort :EventListener;

+ 1 - 1
std/js/html/InputElement.hx

@@ -75,7 +75,7 @@ extern class InputElement extends Element
  HTML attribute, indicating that the control is not available for interaction. */
     var disabled :Bool;
 
-    var entries (default,null) :EntryArray;
+    var entries (default,null) :js.html.fs.EntryArray;
 
     /** A list of selected files. */
     var files :FileList;

+ 1 - 1
std/js/html/Navigator.hx

@@ -78,7 +78,7 @@ extern class Navigator
 
     function getStorageUpdates () :Void;
 
-    function getUserMedia (options :Dynamic, successCallback :NavigatorUserMediaSuccessCallback, ?errorCallback :NavigatorUserMediaErrorCallback) :Void;
+    function getUserMedia (options :Dynamic, successCallback :js.html.rtc.NavigatorUserMediaSuccessCallback, ?errorCallback :js.html.rtc.NavigatorUserMediaErrorCallback) :Void;
 
     function javaEnabled () :Bool;
 

+ 0 - 26
std/js/html/RTCSessionDescriptionCallback.hx

@@ -1,26 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-
-// This file is generated, do not edit!
-package js.html;
-
-typedef RTCSessionDescriptionCallback = RTCSessionDescription -> Bool;

+ 0 - 26
std/js/html/SQLStatementCallback.hx

@@ -1,26 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-
-// This file is generated, do not edit!
-package js.html;
-
-typedef SQLStatementCallback = SQLTransaction -> SQLResultSet -> Bool;

+ 0 - 26
std/js/html/SQLStatementErrorCallback.hx

@@ -1,26 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-
-// This file is generated, do not edit!
-package js.html;
-
-typedef SQLStatementErrorCallback = SQLTransaction -> SQLError -> Bool;

+ 0 - 26
std/js/html/SQLTransactionSyncCallback.hx

@@ -1,26 +0,0 @@
-/*
- * Copyright (C)2005-2012 Haxe Foundation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- * DEALINGS IN THE SOFTWARE.
- */
-
-// This file is generated, do not edit!
-package js.html;
-
-typedef SQLTransactionSyncCallback = SQLTransactionSync -> Bool;

+ 6 - 6
std/js/html/WorkerContext.hx

@@ -50,17 +50,17 @@ extern class WorkerContext extends EventTarget
 
     function importScripts () :Void;
 
-    function openDatabase (name :String, version :String, displayName :String, estimatedSize :Int, ?creationCallback :DatabaseCallback) :Database;
+    function openDatabase (name :String, version :String, displayName :String, estimatedSize :Int, ?creationCallback :js.html.sql.DatabaseCallback) :js.html.sql.Database;
 
-    function openDatabaseSync (name :String, version :String, displayName :String, estimatedSize :Int, ?creationCallback :DatabaseCallback) :DatabaseSync;
+    function openDatabaseSync (name :String, version :String, displayName :String, estimatedSize :Int, ?creationCallback :js.html.sql.DatabaseCallback) :js.html.sql.DatabaseSync;
 
-    function requestFileSystem (type :Int, size :Int, ?successCallback :FileSystemCallback, ?errorCallback :ErrorCallback) :Void;
+    function requestFileSystem (type :Int, size :Int, ?successCallback :js.html.fs.FileSystemCallback, ?errorCallback :js.html.fs.ErrorCallback) :Void;
 
-    function requestFileSystemSync (type :Int, size :Int) :DOMFileSystemSync;
+    function requestFileSystemSync (type :Int, size :Int) :js.html.fs.FileSystemSync;
 
-    function resolveLocalFileSystemSyncURL (url :String) :EntrySync;
+    function resolveLocalFileSystemSyncURL (url :String) :js.html.fs.EntrySync;
 
-    function resolveLocalFileSystemURL (url :String, successCallback :EntryCallback, ?errorCallback :ErrorCallback) :Void;
+    function resolveLocalFileSystemURL (url :String, successCallback :js.html.fs.EntryCallback, ?errorCallback :js.html.fs.ErrorCallback) :Void;
 
     function setInterval (handler :Void->Void, timeout :Int) :Int;
 

+ 1 - 1
std/js/html/audio/AudioContext.hx

@@ -64,7 +64,7 @@ extern class AudioContext extends js.html.EventTarget
 
     function createMediaElementSource (mediaElement :js.html.MediaElement) :MediaElementAudioSourceNode;
 
-    function createMediaStreamSource (mediaStream :js.html.MediaStream) :MediaStreamAudioSourceNode;
+    function createMediaStreamSource (mediaStream :js.html.rtc.MediaStream) :MediaStreamAudioSourceNode;
 
     function createOscillator () :OscillatorNode;
 

+ 1 - 1
std/js/html/audio/MediaStreamAudioSourceNode.hx

@@ -26,6 +26,6 @@ package js.html.audio;
 @:native("MediaStreamAudioSourceNode")
 extern class MediaStreamAudioSourceNode extends AudioSourceNode
 {
-    var mediaStream (default,null) :js.html.MediaStream;
+    var mediaStream (default,null) :js.html.rtc.MediaStream;
 
 }

+ 2 - 2
std/js/html/DirectoryEntry.hx → std/js/html/fs/DirectoryEntry.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>DRAFT</strong> <div>This page is not complete.</div>
 </div>
@@ -36,6 +36,6 @@ extern class DirectoryEntry extends Entry
 
     function getFile (path :String, ?options :Dynamic, ?successCallback :EntryCallback, ?errorCallback :ErrorCallback) :Void;
 
-    function removeRecursively (successCallback :VoidCallback, ?errorCallback :ErrorCallback) :Void;
+    function removeRecursively (successCallback :js.html.VoidCallback, ?errorCallback :ErrorCallback) :Void;
 
 }

+ 1 - 1
std/js/html/DirectoryEntrySync.hx → std/js/html/fs/DirectoryEntrySync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>DRAFT</strong> <div>This page is not complete.</div>
 </div>

+ 1 - 1
std/js/html/DirectoryReader.hx → std/js/html/fs/DirectoryReader.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>`DRAFT</strong> <div>This page is not complete.</div>
 </div>

+ 1 - 1
std/js/html/DirectoryReaderSync.hx → std/js/html/fs/DirectoryReaderSync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>`DRAFT</strong> <div>This page is not complete.</div>
 </div>

+ 1 - 1
std/js/html/EntriesCallback.hx → std/js/html/fs/EntriesCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 typedef EntriesCallback = EntryArray -> Bool;

+ 3 - 3
std/js/html/Entry.hx → std/js/html/fs/Entry.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>DRAFT</strong> <div>This page is not complete.</div>
 </div>
@@ -31,7 +31,7 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
 extern class Entry
 {
     /** The file system on which the entry resides. */
-    var filesystem (default,null) :DOMFileSystem;
+    var filesystem (default,null) :FileSystem;
 
     var fullPath (default,null) :String;
 
@@ -52,7 +52,7 @@ extern class Entry
 
     function moveTo (parent :DirectoryEntry, ?name :String, ?successCallback :EntryCallback, ?errorCallback :ErrorCallback) :Void;
 
-    function remove (successCallback :VoidCallback, ?errorCallback :ErrorCallback) :Void;
+    function remove (successCallback :js.html.VoidCallback, ?errorCallback :ErrorCallback) :Void;
 
     function toURL () :String;
 

+ 1 - 1
std/js/html/EntryArray.hx → std/js/html/fs/EntryArray.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 @:native("EntryArray")
 extern class EntryArray implements ArrayAccess<Entry>

+ 1 - 1
std/js/html/EntryArraySync.hx → std/js/html/fs/EntryArraySync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 @:native("EntryArraySync")
 extern class EntryArraySync implements ArrayAccess<EntrySync>

+ 1 - 1
std/js/html/EntryCallback.hx → std/js/html/fs/EntryCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 typedef EntryCallback = Entry -> Bool;

+ 2 - 2
std/js/html/EntrySync.hx → std/js/html/fs/EntrySync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>DRAFT</strong> <div>This page is not complete.</div>
 </div>
@@ -30,7 +30,7 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
 @:native("EntrySync")
 extern class EntrySync
 {
-    var filesystem (default,null) :DOMFileSystemSync;
+    var filesystem (default,null) :FileSystemSync;
 
     var fullPath (default,null) :String;
 

+ 2 - 2
std/js/html/RTCErrorCallback.hx → std/js/html/fs/ErrorCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
-typedef RTCErrorCallback = String -> Bool;
+typedef ErrorCallback = FileError -> Bool;

+ 2 - 2
std/js/html/FileCallback.hx → std/js/html/fs/FileCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
-typedef FileCallback = File -> Bool;
+typedef FileCallback = js.html.File -> Bool;

+ 1 - 1
std/js/html/FileEntry.hx → std/js/html/fs/FileEntry.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>DRAFT</strong> <div>This page is not complete.</div>
 </div>

+ 2 - 2
std/js/html/FileEntrySync.hx → std/js/html/fs/FileEntrySync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <div><strong>DRAFT</strong> <div>This page is not complete.</div>
 </div>
@@ -32,6 +32,6 @@ extern class FileEntrySync extends EntrySync
 {
     function createWriter () :FileWriterSync;
 
-    function file () :File;
+    function file () :js.html.File;
 
 }

+ 1 - 1
std/js/html/FileError.hx → std/js/html/fs/FileError.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** Represents an error that occurs while using the <code><a rel="custom" href="https://developer.mozilla.org/en/DOM/FileReader">FileReader</a></code>
  interface.<br><br>

+ 1 - 1
std/js/html/FileException.hx → std/js/html/fs/FileException.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** <strong>DRAFT</strong> <div>This page is not complete.</div><br><br>
 Documentation for this class was provided by <a href="https://developer.mozilla.org/en/DOM/File_API/File_System_API/FileException">MDN</a>. */

+ 2 - 2
std/js/html/DOMFileSystem.hx → std/js/html/fs/FileSystem.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 @:native("DOMFileSystem")
-extern class DOMFileSystem
+extern class FileSystem
 {
     var name (default,null) :String;
 

+ 2 - 2
std/js/html/FileSystemCallback.hx → std/js/html/fs/FileSystemCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
-typedef FileSystemCallback = DOMFileSystem -> Bool;
+typedef FileSystemCallback = FileSystem -> Bool;

+ 2 - 2
std/js/html/DOMFileSystemSync.hx → std/js/html/fs/FileSystemSync.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 @:native("DOMFileSystemSync")
-extern class DOMFileSystemSync
+extern class FileSystemSync
 {
     var name (default,null) :String;
 

+ 9 - 9
std/js/html/FileWriter.hx → std/js/html/fs/FileWriter.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 @:native("FileWriter")
-extern class FileWriter extends EventTarget
+extern class FileWriter extends js.html.EventTarget
 {
     static inline var DONE :Int = 2;
 
@@ -36,17 +36,17 @@ extern class FileWriter extends EventTarget
 
     var length (default,null) :Int;
 
-    var onabort :EventListener;
+    var onabort :js.html.EventListener;
 
-    var onerror :EventListener;
+    var onerror :js.html.EventListener;
 
-    var onprogress :EventListener;
+    var onprogress :js.html.EventListener;
 
-    var onwrite :EventListener;
+    var onwrite :js.html.EventListener;
 
-    var onwriteend :EventListener;
+    var onwriteend :js.html.EventListener;
 
-    var onwritestart :EventListener;
+    var onwritestart :js.html.EventListener;
 
     var position (default,null) :Int;
 
@@ -58,6 +58,6 @@ extern class FileWriter extends EventTarget
 
     function truncate (size :Int) :Void;
 
-    function write (data :Blob) :Void;
+    function write (data :js.html.Blob) :Void;
 
 }

+ 1 - 1
std/js/html/FileWriterCallback.hx → std/js/html/fs/FileWriterCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 typedef FileWriterCallback = FileWriter -> Bool;

+ 2 - 2
std/js/html/FileWriterSync.hx → std/js/html/fs/FileWriterSync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 @:native("FileWriterSync")
 extern class FileWriterSync
@@ -34,6 +34,6 @@ extern class FileWriterSync
 
     function truncate (size :Int) :Void;
 
-    function write (data :Blob) :Void;
+    function write (data :js.html.Blob) :Void;
 
 }

+ 1 - 1
std/js/html/Metadata.hx → std/js/html/fs/Metadata.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 /** Metadata is structured data about data. Metadata which is included with SVG content should be specified within <code>metadata</code> elements. The contents of the <code>metadata</code> should be elements from other XML namespaces such as RDF, FOAF, etc.<br><br>
 Documentation for this class was provided by <a href="https://developer.mozilla.org/en/SVG/Element/metadata">MDN</a>. */

+ 1 - 1
std/js/html/MetadataCallback.hx → std/js/html/fs/MetadataCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.fs;
 
 typedef MetadataCallback = Metadata -> Bool;

+ 9 - 9
std/js/html/RTCDataChannel.hx → std/js/html/rtc/DataChannel.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCDataChannel")
-extern class RTCDataChannel extends EventTarget
+extern class DataChannel extends js.html.EventTarget
 {
     /** Setter throws DOMException. */
     var binaryType :String;
@@ -33,13 +33,13 @@ extern class RTCDataChannel extends EventTarget
 
     var label (default,null) :String;
 
-    var onclose :EventListener;
+    var onclose :js.html.EventListener;
 
-    var onerror :EventListener;
+    var onerror :js.html.EventListener;
 
-    var onmessage :EventListener;
+    var onmessage :js.html.EventListener;
 
-    var onopen :EventListener;
+    var onopen :js.html.EventListener;
 
     var readyState (default,null) :String;
 
@@ -48,9 +48,9 @@ extern class RTCDataChannel extends EventTarget
     function close () :Void;
 
     /** Throws DOMException. */
-    @:overload(function (data :ArrayBuffer) :Void {})
-    @:overload(function (data :ArrayBufferView) :Void {})
-    @:overload(function (data :Blob) :Void {})
+    @:overload(function (data :js.html.ArrayBuffer) :Void {})
+    @:overload(function (data :js.html.ArrayBufferView) :Void {})
+    @:overload(function (data :js.html.Blob) :Void {})
     function send (data :String) :Void;
 
 }

+ 3 - 3
std/js/html/RTCDataChannelEvent.hx → std/js/html/rtc/DataChannelEvent.hx

@@ -21,11 +21,11 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCDataChannelEvent")
-extern class RTCDataChannelEvent extends Event
+extern class DataChannelEvent extends js.html.Event
 {
-    var channel (default,null) :RTCDataChannel;
+    var channel (default,null) :DataChannel;
 
 }

+ 2 - 2
std/js/html/ErrorCallback.hx → std/js/html/rtc/ErrorCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
-typedef ErrorCallback = FileError -> Bool;
+typedef ErrorCallback = String -> Bool;

+ 2 - 2
std/js/html/RTCIceCandidate.hx → std/js/html/rtc/IceCandidate.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCIceCandidate")
-extern class RTCIceCandidate
+extern class IceCandidate
 {
     var candidate (default,null) :String;
 

+ 3 - 3
std/js/html/RTCIceCandidateEvent.hx → std/js/html/rtc/IceCandidateEvent.hx

@@ -21,11 +21,11 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCIceCandidateEvent")
-extern class RTCIceCandidateEvent extends Event
+extern class IceCandidateEvent extends js.html.Event
 {
-    var candidate (default,null) :RTCIceCandidate;
+    var candidate (default,null) :IceCandidate;
 
 }

+ 1 - 1
std/js/html/LocalMediaStream.hx → std/js/html/rtc/LocalMediaStream.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("LocalMediaStream")
 extern class LocalMediaStream extends MediaStream

+ 3 - 3
std/js/html/MediaStream.hx → std/js/html/rtc/MediaStream.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("MediaStream")
-extern class MediaStream extends EventTarget
+extern class MediaStream extends js.html.EventTarget
 {
     static inline var ENDED :Int = 2;
 
@@ -34,7 +34,7 @@ extern class MediaStream extends EventTarget
 
     var label (default,null) :String;
 
-    var onended :EventListener;
+    var onended :js.html.EventListener;
 
     var readyState (default,null) :Int;
 

+ 2 - 2
std/js/html/MediaStreamEvent.hx → std/js/html/rtc/MediaStreamEvent.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("MediaStreamEvent")
-extern class MediaStreamEvent extends Event
+extern class MediaStreamEvent extends js.html.Event
 {
     var stream (default,null) :MediaStream;
 

+ 1 - 1
std/js/html/MediaStreamList.hx → std/js/html/rtc/MediaStreamList.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("MediaStreamList")
 extern class MediaStreamList implements ArrayAccess<MediaStream>

+ 5 - 5
std/js/html/MediaStreamTrack.hx → std/js/html/rtc/MediaStreamTrack.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("MediaStreamTrack")
-extern class MediaStreamTrack extends EventTarget
+extern class MediaStreamTrack extends js.html.EventTarget
 {
     static inline var ENDED :Int = 2;
 
@@ -38,11 +38,11 @@ extern class MediaStreamTrack extends EventTarget
 
     var label (default,null) :String;
 
-    var onended :EventListener;
+    var onended :js.html.EventListener;
 
-    var onmute :EventListener;
+    var onmute :js.html.EventListener;
 
-    var onunmute :EventListener;
+    var onunmute :js.html.EventListener;
 
     var readyState (default,null) :Int;
 

+ 2 - 2
std/js/html/MediaStreamTrackEvent.hx → std/js/html/rtc/MediaStreamTrackEvent.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("MediaStreamTrackEvent")
-extern class MediaStreamTrackEvent extends Event
+extern class MediaStreamTrackEvent extends js.html.Event
 {
     var track (default,null) :MediaStreamTrack;
 

+ 4 - 4
std/js/html/MediaStreamTrackList.hx → std/js/html/rtc/MediaStreamTrackList.hx

@@ -21,16 +21,16 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("MediaStreamTrackList")
-extern class MediaStreamTrackList extends EventTarget, implements ArrayAccess<MediaStreamTrack>
+extern class MediaStreamTrackList extends js.html.EventTarget, implements ArrayAccess<MediaStreamTrack>
 {
     var length (default,null) :Int;
 
-    var onaddtrack :EventListener;
+    var onaddtrack :js.html.EventListener;
 
-    var onremovetrack :EventListener;
+    var onremovetrack :js.html.EventListener;
 
     function add (track :MediaStreamTrack) :Void;
 

+ 1 - 1
std/js/html/NavigatorUserMediaError.hx → std/js/html/rtc/NavigatorUserMediaError.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("NavigatorUserMediaError")
 extern class NavigatorUserMediaError

+ 1 - 1
std/js/html/NavigatorUserMediaErrorCallback.hx → std/js/html/rtc/NavigatorUserMediaErrorCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 typedef NavigatorUserMediaErrorCallback = NavigatorUserMediaError -> Bool;

+ 1 - 1
std/js/html/NavigatorUserMediaSuccessCallback.hx → std/js/html/rtc/NavigatorUserMediaSuccessCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 typedef NavigatorUserMediaSuccessCallback = LocalMediaStream -> Bool;

+ 19 - 19
std/js/html/RTCPeerConnection.hx → std/js/html/rtc/PeerConnection.hx

@@ -21,62 +21,62 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCPeerConnection")
-extern class RTCPeerConnection extends EventTarget
+extern class PeerConnection extends js.html.EventTarget
 {
     var iceState (default,null) :String;
 
     /** Getter throws DOMException. */
-    var localDescription (default,null) :RTCSessionDescription;
+    var localDescription (default,null) :SessionDescription;
 
     var localStreams (default,null) :MediaStreamList;
 
-    var onaddstream :EventListener;
+    var onaddstream :js.html.EventListener;
 
-    var ondatachannel :EventListener;
+    var ondatachannel :js.html.EventListener;
 
-    var onicecandidate :EventListener;
+    var onicecandidate :js.html.EventListener;
 
-    var onicechange :EventListener;
+    var onicechange :js.html.EventListener;
 
-    var onnegotiationneeded :EventListener;
+    var onnegotiationneeded :js.html.EventListener;
 
-    var onopen :EventListener;
+    var onopen :js.html.EventListener;
 
-    var onremovestream :EventListener;
+    var onremovestream :js.html.EventListener;
 
-    var onstatechange :EventListener;
+    var onstatechange :js.html.EventListener;
 
     var readyState (default,null) :String;
 
     /** Getter throws DOMException. */
-    var remoteDescription (default,null) :RTCSessionDescription;
+    var remoteDescription (default,null) :SessionDescription;
 
     var remoteStreams (default,null) :MediaStreamList;
 
     function new () :Void;
 
-    function addIceCandidate (candidate :RTCIceCandidate) :Void;
+    function addIceCandidate (candidate :IceCandidate) :Void;
 
     function addStream (stream :MediaStream, ?mediaConstraints :Dynamic) :Void;
 
     function close () :Void;
 
-    function createAnswer (successCallback :RTCSessionDescriptionCallback, failureCallback :RTCErrorCallback, ?mediaConstraints :Dynamic) :Void;
+    function createAnswer (successCallback :SessionDescriptionCallback, failureCallback :ErrorCallback, ?mediaConstraints :Dynamic) :Void;
 
-    function createDataChannel (label :String, ?options :Dynamic) :RTCDataChannel;
+    function createDataChannel (label :String, ?options :Dynamic) :DataChannel;
 
-    function createOffer (successCallback :RTCSessionDescriptionCallback, failureCallback :RTCErrorCallback, ?mediaConstraints :Dynamic) :Void;
+    function createOffer (successCallback :SessionDescriptionCallback, failureCallback :ErrorCallback, ?mediaConstraints :Dynamic) :Void;
 
-    function getStats (successCallback :RTCStatsCallback, selector :MediaStreamTrack) :Void;
+    function getStats (successCallback :StatsCallback, selector :MediaStreamTrack) :Void;
 
     function removeStream (stream :MediaStream) :Void;
 
-    function setLocalDescription (description :RTCSessionDescription, successCallback :VoidCallback, failureCallback :RTCErrorCallback) :Void;
+    function setLocalDescription (description :SessionDescription, successCallback :js.html.VoidCallback, failureCallback :ErrorCallback) :Void;
 
-    function setRemoteDescription (description :RTCSessionDescription, successCallback :VoidCallback, failureCallback :RTCErrorCallback) :Void;
+    function setRemoteDescription (description :SessionDescription, successCallback :js.html.VoidCallback, failureCallback :ErrorCallback) :Void;
 
     function updateIce (?configuration :Dynamic, ?mediaConstraints :Dynamic) :Void;
 

+ 2 - 2
std/js/html/RTCSessionDescription.hx → std/js/html/rtc/SessionDescription.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCSessionDescription")
-extern class RTCSessionDescription
+extern class SessionDescription
 {
     /** Setter throws DOMException. */
     var sdp :String;

+ 26 - 0
std/js/html/rtc/SessionDescriptionCallback.hx

@@ -0,0 +1,26 @@
+/*
+ * Copyright (C)2005-2012 Haxe Foundation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+// This file is generated, do not edit!
+package js.html.rtc;
+
+typedef SessionDescriptionCallback = SessionDescription -> Bool;

+ 2 - 2
std/js/html/RTCStatsCallback.hx → std/js/html/rtc/StatsCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
-typedef RTCStatsCallback = RTCStatsResponse -> Bool;
+typedef StatsCallback = StatsResponse -> Bool;

+ 2 - 2
std/js/html/RTCStatsElement.hx → std/js/html/rtc/StatsElement.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCStatsElement")
-extern class RTCStatsElement
+extern class StatsElement
 {
     var timestamp (default,null) :Date;
 

+ 4 - 4
std/js/html/RTCStatsReport.hx → std/js/html/rtc/StatsReport.hx

@@ -21,13 +21,13 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCStatsReport")
-extern class RTCStatsReport
+extern class StatsReport
 {
-    var local (default,null) :RTCStatsElement;
+    var local (default,null) :StatsElement;
 
-    var remote (default,null) :RTCStatsElement;
+    var remote (default,null) :StatsElement;
 
 }

+ 3 - 3
std/js/html/RTCStatsResponse.hx → std/js/html/rtc/StatsResponse.hx

@@ -21,11 +21,11 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.rtc;
 
 @:native("RTCStatsResponse")
-extern class RTCStatsResponse
+extern class StatsResponse
 {
-    function result () :Array<js.html.RTCStatsReport>;
+    function result () :Array<js.html.rtc.StatsReport>;
 
 }

+ 4 - 4
std/js/html/Database.hx → std/js/html/sql/Database.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 /** <div><p>This content covers features introduced in <a rel="custom" href="https://developer.mozilla.org/en/Firefox_3_for_developers">Firefox 3</a>.</p></div>
 <p></p>
@@ -33,10 +33,10 @@ extern class Database
 {
     var version (default,null) :String;
 
-    function changeVersion (oldVersion :String, newVersion :String, ?callback_ :SQLTransactionCallback, ?errorCallback :SQLTransactionErrorCallback, ?successCallback :VoidCallback) :Void;
+    function changeVersion (oldVersion :String, newVersion :String, ?callback_ :TransactionCallback, ?errorCallback :TransactionErrorCallback, ?successCallback :js.html.VoidCallback) :Void;
 
-    function readTransaction (callback_ :SQLTransactionCallback, ?errorCallback :SQLTransactionErrorCallback, ?successCallback :VoidCallback) :Void;
+    function readTransaction (callback_ :TransactionCallback, ?errorCallback :TransactionErrorCallback, ?successCallback :js.html.VoidCallback) :Void;
 
-    function transaction (callback_ :SQLTransactionCallback, ?errorCallback :SQLTransactionErrorCallback, ?successCallback :VoidCallback) :Void;
+    function transaction (callback_ :TransactionCallback, ?errorCallback :TransactionErrorCallback, ?successCallback :js.html.VoidCallback) :Void;
 
 }

+ 1 - 1
std/js/html/DatabaseCallback.hx → std/js/html/sql/DatabaseCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 typedef DatabaseCallback = Database -> Bool;

+ 4 - 4
std/js/html/DatabaseSync.hx → std/js/html/sql/DatabaseSync.hx

@@ -21,7 +21,7 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 /** <div><strong>DRAFT</strong>
 <div>This page is not complete.</div>
@@ -38,10 +38,10 @@ extern class DatabaseSync
     /** The version of the connected database. Has the null value when the database is first created. */
     var version (default,null) :String;
 
-    function changeVersion (oldVersion :String, newVersion :String, ?callback_ :SQLTransactionSyncCallback) :Void;
+    function changeVersion (oldVersion :String, newVersion :String, ?callback_ :TransactionSyncCallback) :Void;
 
-    function readTransaction (callback_ :SQLTransactionSyncCallback) :Void;
+    function readTransaction (callback_ :TransactionSyncCallback) :Void;
 
-    function transaction (callback_ :SQLTransactionSyncCallback) :Void;
+    function transaction (callback_ :TransactionSyncCallback) :Void;
 
 }

+ 2 - 2
std/js/html/SQLError.hx → std/js/html/sql/Error.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 @:native("SQLError")
-extern class SQLError
+extern class Error
 {
     static inline var CONSTRAINT_ERR :Int = 6;
 

+ 2 - 2
std/js/html/SQLException.hx → std/js/html/sql/Exception.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 @:native("SQLException")
-extern class SQLException
+extern class Exception
 {
     static inline var CONSTRAINT_ERR :Int = 6;
 

+ 3 - 3
std/js/html/SQLResultSet.hx → std/js/html/sql/ResultSet.hx

@@ -21,15 +21,15 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 @:native("SQLResultSet")
-extern class SQLResultSet
+extern class ResultSet
 {
     /** Getter throws DOMException. */
     var insertId (default,null) :Int;
 
-    var rows (default,null) :SQLResultSetRowList;
+    var rows (default,null) :ResultSetRowList;
 
     var rowsAffected (default,null) :Int;
 

+ 2 - 2
std/js/html/SQLResultSetRowList.hx → std/js/html/sql/ResultSetRowList.hx

@@ -21,10 +21,10 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 @:native("SQLResultSetRowList")
-extern class SQLResultSetRowList
+extern class ResultSetRowList
 {
     var length (default,null) :Int;
 

+ 26 - 0
std/js/html/sql/StatementCallback.hx

@@ -0,0 +1,26 @@
+/*
+ * Copyright (C)2005-2012 Haxe Foundation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+// This file is generated, do not edit!
+package js.html.sql;
+
+typedef StatementCallback = Transaction -> ResultSet -> Bool;

+ 26 - 0
std/js/html/sql/StatementErrorCallback.hx

@@ -0,0 +1,26 @@
+/*
+ * Copyright (C)2005-2012 Haxe Foundation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+// This file is generated, do not edit!
+package js.html.sql;
+
+typedef StatementErrorCallback = Transaction -> Error -> Bool;

+ 3 - 3
std/js/html/SQLTransaction.hx → std/js/html/sql/Transaction.hx

@@ -21,11 +21,11 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 @:native("SQLTransaction")
-extern class SQLTransaction
+extern class Transaction
 {
-    function executeSql (sqlStatement :String, arguments :Array<Dynamic>, ?callback_ :SQLStatementCallback, ?errorCallback :SQLStatementErrorCallback) :Void;
+    function executeSql (sqlStatement :String, arguments :Array<Dynamic>, ?callback_ :StatementCallback, ?errorCallback :StatementErrorCallback) :Void;
 
 }

+ 2 - 2
std/js/html/SQLTransactionErrorCallback.hx → std/js/html/sql/TransactionCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
-typedef SQLTransactionErrorCallback = SQLError -> Bool;
+typedef TransactionCallback = Transaction -> Bool;

+ 26 - 0
std/js/html/sql/TransactionErrorCallback.hx

@@ -0,0 +1,26 @@
+/*
+ * Copyright (C)2005-2012 Haxe Foundation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+// This file is generated, do not edit!
+package js.html.sql;
+
+typedef TransactionErrorCallback = Error -> Bool;

+ 3 - 3
std/js/html/SQLTransactionSync.hx → std/js/html/sql/TransactionSync.hx

@@ -21,11 +21,11 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
 @:native("SQLTransactionSync")
-extern class SQLTransactionSync
+extern class TransactionSync
 {
-    function executeSql (sqlStatement :String, arguments :Array<Dynamic>) :SQLResultSet;
+    function executeSql (sqlStatement :String, arguments :Array<Dynamic>) :ResultSet;
 
 }

+ 2 - 2
std/js/html/SQLTransactionCallback.hx → std/js/html/sql/TransactionSyncCallback.hx

@@ -21,6 +21,6 @@
  */
 
 // This file is generated, do not edit!
-package js.html;
+package js.html.sql;
 
-typedef SQLTransactionCallback = SQLTransaction -> Bool;
+typedef TransactionSyncCallback = TransactionSync -> Bool;