| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 : Event(EventTypeNames::popstate, false, true) | 50 : Event(EventTypeNames::popstate, false, true) |
| 51 , m_serializedState(serializedState) | 51 , m_serializedState(serializedState) |
| 52 , m_history(history) | 52 , m_history(history) |
| 53 { | 53 { |
| 54 } | 54 } |
| 55 | 55 |
| 56 PopStateEvent::~PopStateEvent() | 56 PopStateEvent::~PopStateEvent() |
| 57 { | 57 { |
| 58 } | 58 } |
| 59 | 59 |
| 60 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create() | 60 RawPtr<PopStateEvent> PopStateEvent::create() |
| 61 { | 61 { |
| 62 return adoptRefWillBeNoop(new PopStateEvent); | 62 return adoptRefWillBeNoop(new PopStateEvent); |
| 63 } | 63 } |
| 64 | 64 |
| 65 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<Serialize
dScriptValue> serializedState, History* history) | 65 RawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue> se
rializedState, History* history) |
| 66 { | 66 { |
| 67 return adoptRefWillBeNoop(new PopStateEvent(serializedState, history)); | 67 return new PopStateEvent(serializedState, history); |
| 68 } | 68 } |
| 69 | 69 |
| 70 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(const AtomicString&
type, const PopStateEventInit& initializer) | 70 RawPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const PopS
tateEventInit& initializer) |
| 71 { | 71 { |
| 72 return adoptRefWillBeNoop(new PopStateEvent(type, initializer)); | 72 return new PopStateEvent(type, initializer); |
| 73 } | 73 } |
| 74 | 74 |
| 75 const AtomicString& PopStateEvent::interfaceName() const | 75 const AtomicString& PopStateEvent::interfaceName() const |
| 76 { | 76 { |
| 77 return EventNames::PopStateEvent; | 77 return EventNames::PopStateEvent; |
| 78 } | 78 } |
| 79 | 79 |
| 80 DEFINE_TRACE(PopStateEvent) | 80 DEFINE_TRACE(PopStateEvent) |
| 81 { | 81 { |
| 82 visitor->trace(m_history); | 82 visitor->trace(m_history); |
| 83 Event::trace(visitor); | 83 Event::trace(visitor); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace blink | 86 } // namespace blink |
| OLD | NEW |