| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 static PassRefPtr<StorageEvent> create(); | 48 static PassRefPtr<StorageEvent> create(); |
| 49 static PassRefPtr<StorageEvent> create(const AtomicString& type, const Strin
g& key, const String& oldValue, const String& newValue, const String& url, Stora
ge* storageArea); | 49 static PassRefPtr<StorageEvent> create(const AtomicString& type, const Strin
g& key, const String& oldValue, const String& newValue, const String& url, Stora
ge* storageArea); |
| 50 static PassRefPtr<StorageEvent> create(const AtomicString&, const StorageEve
ntInit&); | 50 static PassRefPtr<StorageEvent> create(const AtomicString&, const StorageEve
ntInit&); |
| 51 virtual ~StorageEvent(); | 51 virtual ~StorageEvent(); |
| 52 | 52 |
| 53 const String& key() const { return m_key; } | 53 const String& key() const { return m_key; } |
| 54 const String& oldValue() const { return m_oldValue; } | 54 const String& oldValue() const { return m_oldValue; } |
| 55 const String& newValue() const { return m_newValue; } | 55 const String& newValue() const { return m_newValue; } |
| 56 const String& url() const { return m_url; } | 56 const String& url() const { return m_url; } |
| 57 Storage* storageArea() const { return m_storageArea.get(); } | 57 Storage* storageArea() const { return m_storageArea.get(); } |
| 58 Storage* storageArea(bool& isNull) const { isNull = !m_storageArea; return m
_storageArea.get(); } |
| 58 | 59 |
| 59 void initStorageEvent(const AtomicString& type, bool canBubble, bool cancela
ble, const String& key, const String& oldValue, const String& newValue, const St
ring& url, Storage* storageArea); | 60 void initStorageEvent(const AtomicString& type, bool canBubble, bool cancela
ble, const String& key, const String& oldValue, const String& newValue, const St
ring& url, Storage* storageArea); |
| 60 | 61 |
| 61 // Needed once we support init<blank>EventNS | 62 // Needed once we support init<blank>EventNS |
| 62 // void initStorageEventNS(in DOMString namespaceURI, in DOMString typeArg,
in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMSt
ring oldValueArg, in DOMString newValueArg, in DOMString urlArg, Storage storage
AreaArg); | 63 // void initStorageEventNS(in DOMString namespaceURI, in DOMString typeArg,
in boolean canBubbleArg, in boolean cancelableArg, in DOMString keyArg, in DOMSt
ring oldValueArg, in DOMString newValueArg, in DOMString urlArg, Storage storage
AreaArg); |
| 63 | 64 |
| 64 virtual const AtomicString& interfaceName() const; | 65 virtual const AtomicString& interfaceName() const; |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 StorageEvent(); | 68 StorageEvent(); |
| 68 StorageEvent(const AtomicString& type, const String& key, const String& oldV
alue, const String& newValue, const String& url, Storage* storageArea); | 69 StorageEvent(const AtomicString& type, const String& key, const String& oldV
alue, const String& newValue, const String& url, Storage* storageArea); |
| 69 StorageEvent(const AtomicString&, const StorageEventInit&); | 70 StorageEvent(const AtomicString&, const StorageEventInit&); |
| 70 | 71 |
| 71 String m_key; | 72 String m_key; |
| 72 String m_oldValue; | 73 String m_oldValue; |
| 73 String m_newValue; | 74 String m_newValue; |
| 74 String m_url; | 75 String m_url; |
| 75 RefPtr<Storage> m_storageArea; | 76 RefPtr<Storage> m_storageArea; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace WebCore | 79 } // namespace WebCore |
| 79 | 80 |
| 80 #endif // StorageEvent_h | 81 #endif // StorageEvent_h |
| OLD | NEW |