| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 | 65 |
| 66 const String& oldURL() const { return m_oldURL; } | 66 const String& oldURL() const { return m_oldURL; } |
| 67 const String& newURL() const { return m_newURL; } | 67 const String& newURL() const { return m_newURL; } |
| 68 | 68 |
| 69 virtual const AtomicString& interfaceName() const { return eventNames().inte
rfaceForHashChangeEvent; } | 69 virtual const AtomicString& interfaceName() const { return eventNames().inte
rfaceForHashChangeEvent; } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 HashChangeEvent() | 72 HashChangeEvent() |
| 73 { | 73 { |
| 74 ScriptWrappable::init(this); |
| 74 } | 75 } |
| 75 | 76 |
| 76 HashChangeEvent(const String& oldURL, const String& newURL) | 77 HashChangeEvent(const String& oldURL, const String& newURL) |
| 77 : Event(eventNames().hashchangeEvent, false, false) | 78 : Event(eventNames().hashchangeEvent, false, false) |
| 78 , m_oldURL(oldURL) | 79 , m_oldURL(oldURL) |
| 79 , m_newURL(newURL) | 80 , m_newURL(newURL) |
| 80 { | 81 { |
| 82 ScriptWrappable::init(this); |
| 81 } | 83 } |
| 82 | 84 |
| 83 HashChangeEvent(const AtomicString& type, const HashChangeEventInit& initial
izer) | 85 HashChangeEvent(const AtomicString& type, const HashChangeEventInit& initial
izer) |
| 84 : Event(type, initializer) | 86 : Event(type, initializer) |
| 85 , m_oldURL(initializer.oldURL) | 87 , m_oldURL(initializer.oldURL) |
| 86 , m_newURL(initializer.newURL) | 88 , m_newURL(initializer.newURL) |
| 87 { | 89 { |
| 90 ScriptWrappable::init(this); |
| 88 } | 91 } |
| 89 | 92 |
| 90 String m_oldURL; | 93 String m_oldURL; |
| 91 String m_newURL; | 94 String m_newURL; |
| 92 }; | 95 }; |
| 93 | 96 |
| 94 } // namespace WebCore | 97 } // namespace WebCore |
| 95 | 98 |
| 96 #endif // HashChangeEvent_h | 99 #endif // HashChangeEvent_h |
| OLD | NEW |