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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 PopStateEventInit::PopStateEventInit() | 36 PopStateEventInit::PopStateEventInit() |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
40 PopStateEvent::PopStateEvent() | 40 PopStateEvent::PopStateEvent() |
41 : Event(eventNames().popstateEvent, false, true) | 41 : Event(eventNames().popstateEvent, false, true) |
42 , m_serializedState(0) | 42 , m_serializedState(0) |
43 , m_history(0) | 43 , m_history(0) |
44 { | 44 { |
| 45 ScriptWrappable::init(this); |
45 } | 46 } |
46 | 47 |
47 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit&
initializer) | 48 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit&
initializer) |
48 : Event(type, initializer) | 49 : Event(type, initializer) |
49 , m_state(initializer.state) | 50 , m_state(initializer.state) |
50 , m_serializedState(0) | 51 , m_serializedState(0) |
51 , m_history(0) | 52 , m_history(0) |
52 { | 53 { |
| 54 ScriptWrappable::init(this); |
53 } | 55 } |
54 | 56 |
55 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState,
PassRefPtr<History> history) | 57 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState,
PassRefPtr<History> history) |
56 : Event(eventNames().popstateEvent, false, true) | 58 : Event(eventNames().popstateEvent, false, true) |
57 , m_serializedState(serializedState) | 59 , m_serializedState(serializedState) |
58 , m_history(history) | 60 , m_history(history) |
59 { | 61 { |
| 62 ScriptWrappable::init(this); |
60 } | 63 } |
61 | 64 |
62 PopStateEvent::~PopStateEvent() | 65 PopStateEvent::~PopStateEvent() |
63 { | 66 { |
64 } | 67 } |
65 | 68 |
66 PassRefPtr<PopStateEvent> PopStateEvent::create() | 69 PassRefPtr<PopStateEvent> PopStateEvent::create() |
67 { | 70 { |
68 return adoptRef(new PopStateEvent); | 71 return adoptRef(new PopStateEvent); |
69 } | 72 } |
70 | 73 |
71 PassRefPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue
> serializedState, PassRefPtr<History> history) | 74 PassRefPtr<PopStateEvent> PopStateEvent::create(PassRefPtr<SerializedScriptValue
> serializedState, PassRefPtr<History> history) |
72 { | 75 { |
73 return adoptRef(new PopStateEvent(serializedState, history)); | 76 return adoptRef(new PopStateEvent(serializedState, history)); |
74 } | 77 } |
75 | 78 |
76 PassRefPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const
PopStateEventInit& initializer) | 79 PassRefPtr<PopStateEvent> PopStateEvent::create(const AtomicString& type, const
PopStateEventInit& initializer) |
77 { | 80 { |
78 return adoptRef(new PopStateEvent(type, initializer)); | 81 return adoptRef(new PopStateEvent(type, initializer)); |
79 } | 82 } |
80 | 83 |
81 const AtomicString& PopStateEvent::interfaceName() const | 84 const AtomicString& PopStateEvent::interfaceName() const |
82 { | 85 { |
83 return eventNames().interfaceForPopStateEvent; | 86 return eventNames().interfaceForPopStateEvent; |
84 } | 87 } |
85 | 88 |
86 } // namespace WebCore | 89 } // namespace WebCore |
OLD | NEW |