dom/interfaces/events/nsIDOMCloseEvent.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/interfaces/events/nsIDOMCloseEvent.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsIDOMEvent.idl"
    1.10 +
    1.11 +/**
    1.12 + * The CloseEvent interface is the interface to the event
    1.13 + * close on a WebSocket object.
    1.14 + *
    1.15 + * For more information on this interface, please see
    1.16 + * http://dev.w3.org/html5/websockets/#closeevent
    1.17 + */
    1.18 +[scriptable, builtinclass, uuid(0b85dc61-2436-4786-b153-097f5c3a33b6)]
    1.19 +interface nsIDOMCloseEvent : nsIDOMEvent
    1.20 +{
    1.21 +  readonly attribute boolean wasClean;
    1.22 +  readonly attribute unsigned short code;
    1.23 +  readonly attribute DOMString reason;
    1.24 +
    1.25 +  void initCloseEvent(in DOMString aType,
    1.26 +                      in boolean aCanBubble,
    1.27 +                      in boolean aCancelable,
    1.28 +                      in boolean aWasClean,
    1.29 +                      in unsigned short aReasonCode,
    1.30 +                      in DOMString aReason);
    1.31 +};

mercurial