| 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 20 matching lines...) Expand all Loading... |
| 31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class Storage; | 35 class Storage; |
| 36 class StorageEventInit; | 36 class StorageEventInit; |
| 37 | 37 |
| 38 class StorageEvent final : public Event { | 38 class StorageEvent final : public Event { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 public: | 40 public: |
| 41 static RawPtr<StorageEvent> create(); | 41 static StorageEvent* create(); |
| 42 static RawPtr<StorageEvent> create(const AtomicString& type, const String& k
ey, const String& oldValue, const String& newValue, const String& url, Storage*
storageArea); | 42 static StorageEvent* create(const AtomicString& type, const String& key, con
st String& oldValue, const String& newValue, const String& url, Storage* storage
Area); |
| 43 static RawPtr<StorageEvent> create(const AtomicString&, const StorageEventIn
it&); | 43 static StorageEvent* create(const AtomicString&, const 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 { return m_storageArea.get(); } |
| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 Member<Storage> m_storageArea; | 70 Member<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 |