michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIDOMEvent.idl" michael@0: michael@0: /** michael@0: * The CloseEvent interface is the interface to the event michael@0: * close on a WebSocket object. michael@0: * michael@0: * For more information on this interface, please see michael@0: * http://dev.w3.org/html5/websockets/#closeevent michael@0: */ michael@0: [scriptable, builtinclass, uuid(0b85dc61-2436-4786-b153-097f5c3a33b6)] michael@0: interface nsIDOMCloseEvent : nsIDOMEvent michael@0: { michael@0: readonly attribute boolean wasClean; michael@0: readonly attribute unsigned short code; michael@0: readonly attribute DOMString reason; michael@0: michael@0: void initCloseEvent(in DOMString aType, michael@0: in boolean aCanBubble, michael@0: in boolean aCancelable, michael@0: in boolean aWasClean, michael@0: in unsigned short aReasonCode, michael@0: in DOMString aReason); michael@0: };