dom/interfaces/storage/nsIDOMStorageEvent.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "domstubs.idl"
     7 #include "nsIDOMEvent.idl"
     9 /**
    10  * Interface for a client side storage. See
    11  * http://dev.w3.org/html5/webstorage/#the-storage-event
    12  * for more information.
    13  *
    14  * Event sent to a window when a storage area changes.
    15  */
    17 interface nsIDOMStorage;
    19 [scriptable, builtinclass, uuid(85f04275-4679-4e89-b43f-142bbbab1e89)]
    20 interface nsIDOMStorageEvent : nsIDOMEvent
    21 {
    22   /**
    23    * Attribute represents the key being changed. The key attribute is null
    24    * when change has been invoked by the storage clear() method.
    25    */
    26   readonly attribute DOMString key;
    28   /**
    29    * The original value of the key. The oldValue is null when the change
    30    * has been invoked by storage clear() method or the key has been newly
    31    * added and therefor doesn't have any previous value.
    32    */
    33   readonly attribute DOMString oldValue;
    35   /**
    36    * The new value of the key. The newValue is null when the change
    37    * has been invoked by storage clear() method or the key has been removed
    38    * from the storage.
    39    */
    40   readonly attribute DOMString newValue;
    42   /**
    43    * Represents the address of the document whose key changed.
    44    */
    45   readonly attribute DOMString url;
    47   /**
    48    * Represents the Storage object that was affected.
    49    */
    50   readonly attribute nsIDOMStorage storageArea;
    52   /**
    53    * Initialize the event in a manner analogous to the similarly-named method
    54    * in the DOM Events interfaces.
    55    */
    56   void initStorageEvent(in DOMString typeArg, 
    57                         in boolean canBubbleArg, 
    58                         in boolean cancelableArg, 
    59                         in DOMString keyArg,
    60                         in DOMString oldValueArg,
    61                         in DOMString newValueArg,
    62                         in DOMString urlArg,
    63                         in nsIDOMStorage storageAreaArg);
    64 };

mercurial