| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #define HashChangeEvent_h | 22 #define HashChangeEvent_h |
| 23 | 23 |
| 24 #include "core/events/Event.h" | 24 #include "core/events/Event.h" |
| 25 #include "core/events/HashChangeEventInit.h" | 25 #include "core/events/HashChangeEventInit.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 class HashChangeEvent final : public Event { | 29 class HashChangeEvent final : public Event { |
| 30 DEFINE_WRAPPERTYPEINFO(); | 30 DEFINE_WRAPPERTYPEINFO(); |
| 31 public: | 31 public: |
| 32 static PassRefPtrWillBeRawPtr<HashChangeEvent> create() | 32 static RawPtr<HashChangeEvent> create() |
| 33 { | 33 { |
| 34 return adoptRefWillBeNoop(new HashChangeEvent); | 34 return adoptRefWillBeNoop(new HashChangeEvent); |
| 35 } | 35 } |
| 36 | 36 |
| 37 static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const String& oldURL,
const String& newURL) | 37 static RawPtr<HashChangeEvent> create(const String& oldURL, const String& ne
wURL) |
| 38 { | 38 { |
| 39 return adoptRefWillBeNoop(new HashChangeEvent(oldURL, newURL)); | 39 return new HashChangeEvent(oldURL, newURL); |
| 40 } | 40 } |
| 41 | 41 |
| 42 static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const AtomicString& ty
pe, const HashChangeEventInit& initializer) | 42 static RawPtr<HashChangeEvent> create(const AtomicString& type, const HashCh
angeEventInit& initializer) |
| 43 { | 43 { |
| 44 return adoptRefWillBeNoop(new HashChangeEvent(type, initializer)); | 44 return new HashChangeEvent(type, initializer); |
| 45 } | 45 } |
| 46 | 46 |
| 47 const String& oldURL() const { return m_oldURL; } | 47 const String& oldURL() const { return m_oldURL; } |
| 48 const String& newURL() const { return m_newURL; } | 48 const String& newURL() const { return m_newURL; } |
| 49 | 49 |
| 50 const AtomicString& interfaceName() const override { return EventNames::Hash
ChangeEvent; } | 50 const AtomicString& interfaceName() const override { return EventNames::Hash
ChangeEvent; } |
| 51 | 51 |
| 52 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } | 52 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } |
| 53 | 53 |
| 54 private: | 54 private: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 68 m_newURL = initializer.newURL(); | 68 m_newURL = initializer.newURL(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 String m_oldURL; | 71 String m_oldURL; |
| 72 String m_newURL; | 72 String m_newURL; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif // HashChangeEvent_h | 77 #endif // HashChangeEvent_h |
| OLD | NEW |