| 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 13 matching lines...) Expand all  Loading... | 
|  24  |  24  | 
|  25 #include "config.h" |  25 #include "config.h" | 
|  26  |  26  | 
|  27 #include "modules/mediastream/RTCIceCandidateEvent.h" |  27 #include "modules/mediastream/RTCIceCandidateEvent.h" | 
|  28  |  28  | 
|  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 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() |  34 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create() | 
|  35 { |  35 { | 
|  36     return adoptRefWillBeRefCountedGarbageCollected(new RTCIceCandidateEvent); |  36     return adoptRef(new RTCIceCandidateEvent); | 
|  37 } |  37 } | 
|  38  |  38  | 
|  39 PassRefPtrWillBeRawPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool c
    anBubble, bool cancelable, PassRefPtr<RTCIceCandidate> candidate) |  39 PassRefPtr<RTCIceCandidateEvent> RTCIceCandidateEvent::create(bool canBubble, bo
    ol cancelable, PassRefPtr<RTCIceCandidate> candidate) | 
|  40 { |  40 { | 
|  41     return adoptRefWillBeRefCountedGarbageCollected(new RTCIceCandidateEvent(can
    Bubble, 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
    RefPtr<RTCIceCandidate> candidate) | 
|  50     : Event(EventTypeNames::icecandidate, canBubble, cancelable) |  50     : Event(EventTypeNames::icecandidate, canBubble, cancelable) | 
|  51     , m_candidate(candidate) |  51     , m_candidate(candidate) | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
|  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 |