| 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 19 matching lines...) Expand all Loading... |
| 30 HashChangeEventInit() | 30 HashChangeEventInit() |
| 31 { | 31 { |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 String oldURL; | 34 String oldURL; |
| 35 String newURL; | 35 String newURL; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class HashChangeEvent FINAL : public Event { | 38 class HashChangeEvent FINAL : public Event { |
| 39 public: | 39 public: |
| 40 static PassRefPtr<HashChangeEvent> create() | 40 static PassRefPtrWillBeRawPtr<HashChangeEvent> create() |
| 41 { | 41 { |
| 42 return adoptRef(new HashChangeEvent); | 42 return adoptRefCountedWillBeRefCountedGarbageCollected(new HashChangeEve
nt); |
| 43 } | 43 } |
| 44 | 44 |
| 45 static PassRefPtr<HashChangeEvent> create(const String& oldURL, const String
& newURL) | 45 static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const String& oldURL,
const String& newURL) |
| 46 { | 46 { |
| 47 return adoptRef(new HashChangeEvent(oldURL, newURL)); | 47 return adoptRefCountedWillBeRefCountedGarbageCollected(new HashChangeEve
nt(oldURL, newURL)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 static PassRefPtr<HashChangeEvent> create(const AtomicString& type, const Ha
shChangeEventInit& initializer) | 50 static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const AtomicString& ty
pe, const HashChangeEventInit& initializer) |
| 51 { | 51 { |
| 52 return adoptRef(new HashChangeEvent(type, initializer)); | 52 return adoptRefCountedWillBeRefCountedGarbageCollected(new HashChangeEve
nt(type, initializer)); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void initHashChangeEvent(const AtomicString& eventType, bool canBubble, bool
cancelable, const String& oldURL, const String& newURL) | 55 void initHashChangeEvent(const AtomicString& eventType, bool canBubble, bool
cancelable, const String& oldURL, const String& newURL) |
| 56 { | 56 { |
| 57 if (dispatched()) | 57 if (dispatched()) |
| 58 return; | 58 return; |
| 59 | 59 |
| 60 initEvent(eventType, canBubble, cancelable); | 60 initEvent(eventType, canBubble, cancelable); |
| 61 | 61 |
| 62 m_oldURL = oldURL; | 62 m_oldURL = oldURL; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 92 ScriptWrappable::init(this); | 92 ScriptWrappable::init(this); |
| 93 } | 93 } |
| 94 | 94 |
| 95 String m_oldURL; | 95 String m_oldURL; |
| 96 String m_newURL; | 96 String m_newURL; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace WebCore | 99 } // namespace WebCore |
| 100 | 100 |
| 101 #endif // HashChangeEvent_h | 101 #endif // HashChangeEvent_h |
| OLD | NEW |