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

Side by Side Diff: Source/core/events/RelatedEvent.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/ProgressEvent.cpp ('k') | Source/core/events/ResourceProgressEvent.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/events/RelatedEvent.h" 6 #include "core/events/RelatedEvent.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 RelatedEventInit::RelatedEventInit() 10 RelatedEventInit::RelatedEventInit()
(...skipping 14 matching lines...) Expand all
25 return adoptRefWillBeNoop(new RelatedEvent(type, canBubble, cancelable, rela tedTarget)); 25 return adoptRefWillBeNoop(new RelatedEvent(type, canBubble, cancelable, rela tedTarget));
26 } 26 }
27 27
28 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty pe, const RelatedEventInit& initializer) 28 PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& ty pe, const RelatedEventInit& initializer)
29 { 29 {
30 return adoptRefWillBeNoop(new RelatedEvent(type, initializer)); 30 return adoptRefWillBeNoop(new RelatedEvent(type, initializer));
31 } 31 }
32 32
33 RelatedEvent::RelatedEvent() 33 RelatedEvent::RelatedEvent()
34 { 34 {
35 ScriptWrappable::init(this);
36 } 35 }
37 36
38 RelatedEvent::RelatedEvent(const AtomicString& type, bool canBubble, bool cancel able, EventTarget* relatedTarget) 37 RelatedEvent::RelatedEvent(const AtomicString& type, bool canBubble, bool cancel able, EventTarget* relatedTarget)
39 : Event(type, canBubble, cancelable) 38 : Event(type, canBubble, cancelable)
40 , m_relatedTarget(relatedTarget) 39 , m_relatedTarget(relatedTarget)
41 { 40 {
42 ScriptWrappable::init(this);
43 } 41 }
44 42
45 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit & initializer) 43 RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit & initializer)
46 : Event(eventType, initializer) 44 : Event(eventType, initializer)
47 , m_relatedTarget(initializer.relatedTarget) 45 , m_relatedTarget(initializer.relatedTarget)
48 { 46 {
49 ScriptWrappable::init(this);
50 } 47 }
51 48
52 void RelatedEvent::trace(Visitor* visitor) 49 void RelatedEvent::trace(Visitor* visitor)
53 { 50 {
54 visitor->trace(m_relatedTarget); 51 visitor->trace(m_relatedTarget);
55 Event::trace(visitor); 52 Event::trace(visitor);
56 } 53 }
57 54
58 } // namespace blink 55 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/events/ProgressEvent.cpp ('k') | Source/core/events/ResourceProgressEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698