diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/websockets/CloseEvent.idl | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/websockets/CloseEvent.idl')
-rw-r--r-- | Source/WebCore/Modules/websockets/CloseEvent.idl | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Source/WebCore/Modules/websockets/CloseEvent.idl b/Source/WebCore/Modules/websockets/CloseEvent.idl index 3f29a4959..db536c227 100644 --- a/Source/WebCore/Modules/websockets/CloseEvent.idl +++ b/Source/WebCore/Modules/websockets/CloseEvent.idl @@ -28,12 +28,17 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +// FIXME: This should be exposed to workers as well. [ - JSNoStaticTables, - ConstructorTemplate=Event + Constructor(DOMString type, optional CloseEventInit eventInitDict), ] interface CloseEvent : Event { - [InitializedByEventConstructor] readonly attribute boolean wasClean; - [InitializedByEventConstructor] readonly attribute unsigned short code; - [InitializedByEventConstructor] readonly attribute DOMString reason; + readonly attribute boolean wasClean; + readonly attribute unsigned short code; + readonly attribute USVString reason; }; +dictionary CloseEventInit : EventInit { + boolean wasClean = false; + unsigned short code = 0; + USVString reason = ""; +}; |