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 18 matching lines...) Expand all Loading... |
29 #include "core/events/ThreadLocalEventNames.h" | 29 #include "core/events/ThreadLocalEventNames.h" |
30 #include "modules/mediastream/RTCIceCandidate.h" | 30 #include "modules/mediastream/RTCIceCandidate.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() | 34 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() |
35 { | 35 { |
36 return adoptRef(new RTCIceCandidateEvent); | 36 return adoptRef(new RTCIceCandidateEvent); |
37 } | 37 } |
38 | 38 |
39 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo
ol cancelable, PassRefPtr<RTCIceCandidate> candidate) | 39 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo
ol cancelable, PassRefPtrWillBeRawPtr<RTCIceCandidate> candidate) |
40 { | 40 { |
41 return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate)); | 41 return adoptRef(new RTCIceCandidateEvent(canBubble, cancelable, candidate)); |
42 } | 42 } |
43 | 43 |
44 RTCIceCandidateEvent::RTCIceCandidateEvent() | 44 RTCIceCandidateEvent::RTCIceCandidateEvent() |
45 { | 45 { |
46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
47 } | 47 } |
48 | 48 |
49 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass
RefPtr<RTCIceCandidate> candidate) | 49 RTCIceCandidateEvent::RTCIceCandidateEvent(bool canBubble, bool cancelable, Pass
RefPtrWillBeRawPtr<RTCIceCandidate> candidate) |
50 : Event(EventTypeNames::icecandidate, canBubble, cancelable) | 50 : Event(EventTypeNames::icecandidate, canBubble, cancelable) |
51 , m_candidate(candidate) | 51 , m_candidate(candidate) |
52 { | 52 { |
53 ScriptWrappable::init(this); | 53 ScriptWrappable::init(this); |
54 } | 54 } |
55 | 55 |
56 RTCIceCandidateEvent::~RTCIceCandidateEvent() | 56 RTCIceCandidateEvent::~RTCIceCandidateEvent() |
57 { | 57 { |
58 } | 58 } |
59 | 59 |
60 RTCIceCandidate* RTCIceCandidateEvent::candidate() const | 60 RTCIceCandidate* RTCIceCandidateEvent::candidate() const |
61 { | 61 { |
62 return m_candidate.get(); | 62 return m_candidate.get(); |
63 } | 63 } |
64 | 64 |
65 const AtomicString& RTCIceCandidateEvent::interfaceName() const | 65 const AtomicString& RTCIceCandidateEvent::interfaceName() const |
66 { | 66 { |
67 return EventNames::RTCIceCandidateEvent; | 67 return EventNames::RTCIceCandidateEvent; |
68 } | 68 } |
69 | 69 |
70 void RTCIceCandidateEvent::trace(Visitor* visitor) | 70 void RTCIceCandidateEvent::trace(Visitor* visitor) |
71 { | 71 { |
72 Event::trace(visitor); | 72 Event::trace(visitor); |
73 } | 73 } |
74 | 74 |
75 } // namespace WebCore | 75 } // namespace WebCore |
76 | 76 |
OLD | NEW |