| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |