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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: * michael@0: * Interface for a client side storage. See michael@0: * http://dev.w3.org/html5/webstorage/#the-storage-event michael@0: * for more information. michael@0: * michael@0: * Event sent to a window when a storage area changes. michael@0: */ michael@0: interface Storage; michael@0: michael@0: [Constructor(DOMString type, optional StorageEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"] michael@0: interface StorageEvent : Event michael@0: { michael@0: readonly attribute DOMString? key; michael@0: readonly attribute DOMString? oldValue; michael@0: readonly attribute DOMString? newValue; michael@0: readonly attribute DOMString? url; michael@0: readonly attribute Storage? storageArea; michael@0: michael@0: // initStorageEvent is a Gecko specific deprecated method. michael@0: [Throws] michael@0: void initStorageEvent(DOMString type, michael@0: boolean canBubble, michael@0: boolean cancelable, michael@0: DOMString? key, michael@0: DOMString? oldValue, michael@0: DOMString? newValue, michael@0: DOMString? url, michael@0: Storage? storageArea); michael@0: }; michael@0: michael@0: dictionary StorageEventInit : EventInit michael@0: { michael@0: DOMString? key = null; michael@0: DOMString? oldValue = null; michael@0: DOMString? newValue = null; michael@0: DOMString url = ""; michael@0: Storage? storageArea = null; michael@0: };