dom/webidl/StorageEvent.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     4  * You can obtain one at http://mozilla.org/MPL/2.0/.
     5  *
     6  * Interface for a client side storage. See
     7  * http://dev.w3.org/html5/webstorage/#the-storage-event
     8  * for more information.
     9  *
    10  * Event sent to a window when a storage area changes.
    11  */
    12 interface Storage;
    14 [Constructor(DOMString type, optional StorageEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
    15 interface StorageEvent : Event
    16 {
    17   readonly attribute DOMString? key;
    18   readonly attribute DOMString? oldValue;
    19   readonly attribute DOMString? newValue;
    20   readonly attribute DOMString? url;
    21   readonly attribute Storage? storageArea;
    23   // initStorageEvent is a Gecko specific deprecated method.
    24   [Throws]
    25   void initStorageEvent(DOMString type,
    26                         boolean canBubble,
    27                         boolean cancelable,
    28                         DOMString? key,
    29                         DOMString? oldValue,
    30                         DOMString? newValue,
    31                         DOMString? url,
    32                         Storage? storageArea);
    33 };
    35 dictionary StorageEventInit : EventInit
    36 {
    37   DOMString? key = null;
    38   DOMString? oldValue = null;
    39   DOMString? newValue = null;
    40   DOMString url = "";
    41   Storage? storageArea = null;
    42 };

mercurial