| 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 27 matching lines...) Expand all Loading... |
| 38 , m_history(nullptr) | 38 , m_history(nullptr) |
| 39 { | 39 { |
| 40 } | 40 } |
| 41 | 41 |
| 42 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit&
initializer) | 42 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit&
initializer) |
| 43 : Event(type, initializer) | 43 : Event(type, initializer) |
| 44 , m_history(nullptr) | 44 , m_history(nullptr) |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState,
PassRefPtrWillBeRawPtr<History> history) | 48 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState,
History* history) |
| 49 : Event(EventTypeNames::popstate, false, true) | 49 : Event(EventTypeNames::popstate, false, true) |
| 50 , m_serializedState(serializedState) | 50 , m_serializedState(serializedState) |
| 51 , m_history(history) | 51 , m_history(history) |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 PopStateEvent::~PopStateEvent() | 55 PopStateEvent::~PopStateEvent() |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| 59 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create() | 59 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create() |
| 60 { | 60 { |
| 61 return adoptRefWillBeNoop(new PopStateEvent); | 61 return adoptRefWillBeNoop(new PopStateEvent); |
| 62 } | 62 } |
| 63 | 63 |
| 64 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<Serialize
dScriptValue> serializedState, PassRefPtrWillBeRawPtr<History> history) | 64 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<Serialize
dScriptValue> serializedState, History* history) |
| 65 { | 65 { |
| 66 return adoptRefWillBeNoop(new PopStateEvent(serializedState, history)); | 66 return adoptRefWillBeNoop(new PopStateEvent(serializedState, history)); |
| 67 } | 67 } |
| 68 | 68 |
| 69 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(const AtomicString&
type, const PopStateEventInit& initializer) | 69 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(const AtomicString&
type, const PopStateEventInit& initializer) |
| 70 { | 70 { |
| 71 return adoptRefWillBeNoop(new PopStateEvent(type, initializer)); | 71 return adoptRefWillBeNoop(new PopStateEvent(type, initializer)); |
| 72 } | 72 } |
| 73 | 73 |
| 74 const AtomicString& PopStateEvent::interfaceName() const | 74 const AtomicString& PopStateEvent::interfaceName() const |
| 75 { | 75 { |
| 76 return EventNames::PopStateEvent; | 76 return EventNames::PopStateEvent; |
| 77 } | 77 } |
| 78 | 78 |
| 79 DEFINE_TRACE(PopStateEvent) | 79 DEFINE_TRACE(PopStateEvent) |
| 80 { | 80 { |
| 81 visitor->trace(m_history); | 81 visitor->trace(m_history); |
| 82 Event::trace(visitor); | 82 Event::trace(visitor); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |