diff options
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 = ""; +}; |