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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<Serialize
dScriptValue> serializedState, History* history) | 66 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<Serialize
dScriptValue> serializedState, History* history) |
67 { | 67 { |
68 return adoptRefWillBeNoop(new PopStateEvent(serializedState, history)); | 68 return adoptRefWillBeNoop(new PopStateEvent(serializedState, history)); |
69 } | 69 } |
70 | 70 |
71 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(const AtomicString&
type, const PopStateEventInit& initializer) | 71 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create(const AtomicString&
type, const PopStateEventInit& initializer) |
72 { | 72 { |
73 return adoptRefWillBeNoop(new PopStateEvent(type, initializer)); | 73 return adoptRefWillBeNoop(new PopStateEvent(type, initializer)); |
74 } | 74 } |
75 | 75 |
| 76 History* PopStateEvent::history() const |
| 77 { |
| 78 return m_history.get(); |
| 79 } |
| 80 |
76 const AtomicString& PopStateEvent::interfaceName() const | 81 const AtomicString& PopStateEvent::interfaceName() const |
77 { | 82 { |
78 return EventNames::PopStateEvent; | 83 return EventNames::PopStateEvent; |
79 } | 84 } |
80 | 85 |
81 DEFINE_TRACE(PopStateEvent) | 86 DEFINE_TRACE(PopStateEvent) |
82 { | 87 { |
83 visitor->trace(m_history); | 88 visitor->trace(m_history); |
84 Event::trace(visitor); | 89 Event::trace(visitor); |
85 } | 90 } |
86 | 91 |
87 } // namespace blink | 92 } // namespace blink |
OLD | NEW |