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

Side by Side Diff: Source/modules/mediastream/RTCIceCandidateEvent.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 23 matching lines...) Expand all
34 return adoptRefWillBeNoop(new RTCIceCandidateEvent); 34 return adoptRefWillBeNoop(new RTCIceCandidateEvent);
35 } 35 }
36 36
37 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool c anBubble, bool cancelable, RTCIceCandidate* candidate) 37 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool c anBubble, bool cancelable, RTCIceCandidate* candidate)
38 { 38 {
39 return adoptRefWillBeNoop(new RTCIceCandidateEvent(canBubble, cancelable, ca ndidate)); 39 return adoptRefWillBeNoop(new RTCIceCandidateEvent(canBubble, cancelable, ca ndidate));
40 } 40 }
41 41
42 RTCIceCandidateEvent::RTCIceCandidateEvent() 42 RTCIceCandidateEvent::RTCIceCandidateEvent()
43 { 43 {
44 ScriptWrappable::init(this);
45 } 44 }
46 45
47 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, RTCI ceCandidate* candidate) 46 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, RTCI ceCandidate* candidate)
48 : Event(EventTypeNames::icecandidate, canBubble, cancelable) 47 : Event(EventTypeNames::icecandidate, canBubble, cancelable)
49 , m_candidate(candidate) 48 , m_candidate(candidate)
50 { 49 {
51 ScriptWrappable::init(this);
52 } 50 }
53 51
54 RTCIceCandidateEvent::~RTCIceCandidateEvent() 52 RTCIceCandidateEvent::~RTCIceCandidateEvent()
55 { 53 {
56 } 54 }
57 55
58 RTCIceCandidate* RTCIceCandidateEvent::candidate() const 56 RTCIceCandidate* RTCIceCandidateEvent::candidate() const
59 { 57 {
60 return m_candidate.get(); 58 return m_candidate.get();
61 } 59 }
62 60
63 const AtomicString& RTCIceCandidateEvent::interfaceName() const 61 const AtomicString& RTCIceCandidateEvent::interfaceName() const
64 { 62 {
65 return EventNames::RTCIceCandidateEvent; 63 return EventNames::RTCIceCandidateEvent;
66 } 64 }
67 65
68 void RTCIceCandidateEvent::trace(Visitor* visitor) 66 void RTCIceCandidateEvent::trace(Visitor* visitor)
69 { 67 {
70 visitor->trace(m_candidate); 68 visitor->trace(m_candidate);
71 Event::trace(visitor); 69 Event::trace(visitor);
72 } 70 }
73 71
74 } // namespace blink 72 } // namespace blink
75 73
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCIceCandidate.cpp ('k') | Source/modules/mediastream/RTCPeerConnection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698