StorageEvent.webidl (1485B)
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 13 [Exposed=Window] 14 interface StorageEvent : Event 15 { 16 constructor(DOMString type, optional StorageEventInit eventInitDict = {}); 17 18 readonly attribute DOMString? key; 19 readonly attribute DOMString? oldValue; 20 readonly attribute DOMString? newValue; 21 readonly attribute USVString url; 22 readonly attribute Storage? storageArea; 23 24 undefined initStorageEvent(DOMString type, 25 optional boolean canBubble = false, 26 optional boolean cancelable = false, 27 optional DOMString? key = null, 28 optional DOMString? oldValue = null, 29 optional DOMString? newValue = null, 30 optional USVString url = "", 31 optional Storage? storageArea = null); 32 }; 33 34 dictionary StorageEventInit : EventInit 35 { 36 DOMString? key = null; 37 DOMString? oldValue = null; 38 DOMString? newValue = null; 39 USVString url = ""; 40 Storage? storageArea = null; 41 };