| 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 27 matching lines...) Expand all Loading... |
| 38 return adoptRef(new RTCIceCandidateEvent); | 38 return adoptRef(new RTCIceCandidateEvent); |
| 39 } | 39 } |
| 40 | 40 |
| 41 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo
ol cancelable, PassRefPtr<RTCIceCandidate> candidate) | 41 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo
ol cancelable, PassRefPtr<RTCIceCandidate> candidate) |
| 42 { | 42 { |
| 43 return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate)); | 43 return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 RTCIceCandidateEvent::RTCIceCandidateEvent() | 46 RTCIceCandidateEvent::RTCIceCandidateEvent() |
| 47 { | 47 { |
| 48 ScriptWrappable::init(this); |
| 48 } | 49 } |
| 49 | 50 |
| 50 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass
RefPtr<RTCIceCandidate> candidate) | 51 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass
RefPtr<RTCIceCandidate> candidate) |
| 51 : Event(eventNames().icecandidateEvent, canBubble, cancelable) | 52 : Event(eventNames().icecandidateEvent, canBubble, cancelable) |
| 52 , m_candidate(candidate) | 53 , m_candidate(candidate) |
| 53 { | 54 { |
| 55 ScriptWrappable::init(this); |
| 54 } | 56 } |
| 55 | 57 |
| 56 RTCIceCandidateEvent::~RTCIceCandidateEvent() | 58 RTCIceCandidateEvent::~RTCIceCandidateEvent() |
| 57 { | 59 { |
| 58 } | 60 } |
| 59 | 61 |
| 60 RTCIceCandidate* RTCIceCandidateEvent::candidate() const | 62 RTCIceCandidate* RTCIceCandidateEvent::candidate() const |
| 61 { | 63 { |
| 62 return m_candidate.get(); | 64 return m_candidate.get(); |
| 63 } | 65 } |
| 64 | 66 |
| 65 const AtomicString& RTCIceCandidateEvent::interfaceName() const | 67 const AtomicString& RTCIceCandidateEvent::interfaceName() const |
| 66 { | 68 { |
| 67 return eventNames().interfaceForRTCIceCandidateEvent; | 69 return eventNames().interfaceForRTCIceCandidateEvent; |
| 68 } | 70 } |
| 69 | 71 |
| 70 } // namespace WebCore | 72 } // namespace WebCore |
| 71 | 73 |
| 72 #endif // ENABLE(MEDIA_STREAM) | 74 #endif // ENABLE(MEDIA_STREAM) |
| 73 | 75 |
| OLD | NEW |