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 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 static PassRefPtrWillBeRawPtr<StorageEvent> create(); | 41 static PassRefPtrWillBeRawPtr<StorageEvent> create(); |
42 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString& type,
const String& key, const String& oldValue, const String& newValue, const String
& url, Storage* storageArea); | 42 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString& type,
const String& key, const String& oldValue, const String& newValue, const String
& url, Storage* storageArea); |
43 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString&, cons
t StorageEventInit&); | 43 static PassRefPtrWillBeRawPtr<StorageEvent> create(const AtomicString&, cons
t StorageEventInit&); |
44 ~StorageEvent() override; | 44 ~StorageEvent() override; |
45 | 45 |
46 const String& key() const { return m_key; } | 46 const String& key() const { return m_key; } |
47 const String& oldValue() const { return m_oldValue; } | 47 const String& oldValue() const { return m_oldValue; } |
48 const String& newValue() const { return m_newValue; } | 48 const String& newValue() const { return m_newValue; } |
49 const String& url() const { return m_url; } | 49 const String& url() const { return m_url; } |
50 Storage* storageArea() const { return m_storageArea.get(); } | 50 Storage* storageArea() const; |
51 | 51 |
52 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); | 52 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); |
53 | 53 |
54 // Needed once we support init<blank>EventNS | 54 // Needed once we support init<blank>EventNS |
55 // 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); | 55 // 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); |
56 | 56 |
57 const AtomicString& interfaceName() const override; | 57 const AtomicString& interfaceName() const override; |
58 | 58 |
59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
60 | 60 |
61 private: | 61 private: |
62 StorageEvent(); | 62 StorageEvent(); |
63 StorageEvent(const AtomicString& type, const String& key, const String& oldV
alue, const String& newValue, const String& url, Storage* storageArea); | 63 StorageEvent(const AtomicString& type, const String& key, const String& oldV
alue, const String& newValue, const String& url, Storage* storageArea); |
64 StorageEvent(const AtomicString&, const StorageEventInit&); | 64 StorageEvent(const AtomicString&, const StorageEventInit&); |
65 | 65 |
66 String m_key; | 66 String m_key; |
67 String m_oldValue; | 67 String m_oldValue; |
68 String m_newValue; | 68 String m_newValue; |
69 String m_url; | 69 String m_url; |
70 PersistentWillBeMember<Storage> m_storageArea; | 70 PersistentWillBeMember<Storage> m_storageArea; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace blink | 73 } // namespace blink |
74 | 74 |
75 #endif // StorageEvent_h | 75 #endif // StorageEvent_h |
OLD | NEW |