Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: Source/core/events/PopStateEvent.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/events/PageTransitionEvent.cpp ('k') | Source/core/events/ProgressEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 #include "bindings/core/v8/SerializedScriptValue.h" 30 #include "bindings/core/v8/SerializedScriptValue.h"
31 #include "core/frame/History.h" 31 #include "core/frame/History.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 PopStateEvent::PopStateEvent() 35 PopStateEvent::PopStateEvent()
36 : Event(EventTypeNames::popstate, false, true) 36 : Event(EventTypeNames::popstate, false, true)
37 , m_serializedState(nullptr) 37 , m_serializedState(nullptr)
38 , m_history(nullptr) 38 , m_history(nullptr)
39 { 39 {
40 ScriptWrappable::init(this);
41 } 40 }
42 41
43 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer) 42 PopStateEvent::PopStateEvent(const AtomicString& type, const PopStateEventInit& initializer)
44 : Event(type, initializer) 43 : Event(type, initializer)
45 , m_history(nullptr) 44 , m_history(nullptr)
46 { 45 {
47 ScriptWrappable::init(this);
48 } 46 }
49 47
50 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtrWillBeRawPtr<History> history) 48 PopStateEvent::PopStateEvent(PassRefPtr<SerializedScriptValue> serializedState, PassRefPtrWillBeRawPtr<History> history)
51 : Event(EventTypeNames::popstate, false, true) 49 : Event(EventTypeNames::popstate, false, true)
52 , m_serializedState(serializedState) 50 , m_serializedState(serializedState)
53 , m_history(history) 51 , m_history(history)
54 { 52 {
55 ScriptWrappable::init(this);
56 } 53 }
57 54
58 PopStateEvent::~PopStateEvent() 55 PopStateEvent::~PopStateEvent()
59 { 56 {
60 } 57 }
61 58
62 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create() 59 PassRefPtrWillBeRawPtr<PopStateEvent> PopStateEvent::create()
63 { 60 {
64 return adoptRefWillBeNoop(new PopStateEvent); 61 return adoptRefWillBeNoop(new PopStateEvent);
65 } 62 }
(...skipping 13 matching lines...) Expand all
79 return EventNames::PopStateEvent; 76 return EventNames::PopStateEvent;
80 } 77 }
81 78
82 void PopStateEvent::trace(Visitor* visitor) 79 void PopStateEvent::trace(Visitor* visitor)
83 { 80 {
84 visitor->trace(m_history); 81 visitor->trace(m_history);
85 Event::trace(visitor); 82 Event::trace(visitor);
86 } 83 }
87 84
88 } // namespace blink 85 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/events/PageTransitionEvent.cpp ('k') | Source/core/events/ProgressEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698