| 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 10 matching lines...) Expand all Loading... |
| 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "modules/mediastream/MediaStreamTrackEvent.h" | 25 #include "modules/mediastream/MediaStreamTrackEvent.h" |
| 26 | 26 |
| 27 #include "modules/mediastream/MediaStreamTrack.h" | 27 #include "modules/mediastream/MediaStreamTrack.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create() | 31 RawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create() |
| 32 { | 32 { |
| 33 return adoptRefWillBeNoop(new MediaStreamTrackEvent); | 33 return adoptRefWillBeNoop(new MediaStreamTrackEvent); |
| 34 } | 34 } |
| 35 | 35 |
| 36 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(cons
t AtomicString& type, bool canBubble, bool cancelable, MediaStreamTrack* track) | 36 RawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicString&
type, bool canBubble, bool cancelable, MediaStreamTrack* track) |
| 37 { | 37 { |
| 38 return adoptRefWillBeNoop(new MediaStreamTrackEvent(type, canBubble, cancela
ble, track)); | 38 return new MediaStreamTrackEvent(type, canBubble, cancelable, track); |
| 39 } | 39 } |
| 40 | 40 |
| 41 | 41 |
| 42 MediaStreamTrackEvent::MediaStreamTrackEvent() | 42 MediaStreamTrackEvent::MediaStreamTrackEvent() |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, MediaStreamTrack* track) | 46 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, MediaStreamTrack* track) |
| 47 : Event(type, canBubble, cancelable) | 47 : Event(type, canBubble, cancelable) |
| 48 , m_track(track) | 48 , m_track(track) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 63 return EventNames::MediaStreamTrackEvent; | 63 return EventNames::MediaStreamTrackEvent; |
| 64 } | 64 } |
| 65 | 65 |
| 66 DEFINE_TRACE(MediaStreamTrackEvent) | 66 DEFINE_TRACE(MediaStreamTrackEvent) |
| 67 { | 67 { |
| 68 visitor->trace(m_track); | 68 visitor->trace(m_track); |
| 69 Event::trace(visitor); | 69 Event::trace(visitor); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| OLD | NEW |