| 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 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(cons
t AtomicString& type, bool canBubble, bool cancelable, MediaStreamTrack* track) | 37 PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(cons
t AtomicString& type, bool canBubble, bool cancelable, MediaStreamTrack* track) |
| 38 { | 38 { |
| 39 return adoptRefWillBeNoop(new MediaStreamTrackEvent(type, canBubble, cancela
ble, track)); | 39 return adoptRefWillBeNoop(new MediaStreamTrackEvent(type, canBubble, cancela
ble, track)); |
| 40 } | 40 } |
| 41 | 41 |
| 42 | 42 |
| 43 MediaStreamTrackEvent::MediaStreamTrackEvent() | 43 MediaStreamTrackEvent::MediaStreamTrackEvent() |
| 44 { | 44 { |
| 45 ScriptWrappable::init(this); | |
| 46 } | 45 } |
| 47 | 46 |
| 48 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, MediaStreamTrack* track) | 47 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, MediaStreamTrack* track) |
| 49 : Event(type, canBubble, cancelable) | 48 : Event(type, canBubble, cancelable) |
| 50 , m_track(track) | 49 , m_track(track) |
| 51 { | 50 { |
| 52 ScriptWrappable::init(this); | |
| 53 } | 51 } |
| 54 | 52 |
| 55 MediaStreamTrackEvent::~MediaStreamTrackEvent() | 53 MediaStreamTrackEvent::~MediaStreamTrackEvent() |
| 56 { | 54 { |
| 57 } | 55 } |
| 58 | 56 |
| 59 MediaStreamTrack* MediaStreamTrackEvent::track() const | 57 MediaStreamTrack* MediaStreamTrackEvent::track() const |
| 60 { | 58 { |
| 61 return m_track.get(); | 59 return m_track.get(); |
| 62 } | 60 } |
| 63 | 61 |
| 64 const AtomicString& MediaStreamTrackEvent::interfaceName() const | 62 const AtomicString& MediaStreamTrackEvent::interfaceName() const |
| 65 { | 63 { |
| 66 return EventNames::MediaStreamTrackEvent; | 64 return EventNames::MediaStreamTrackEvent; |
| 67 } | 65 } |
| 68 | 66 |
| 69 void MediaStreamTrackEvent::trace(Visitor* visitor) | 67 void MediaStreamTrackEvent::trace(Visitor* visitor) |
| 70 { | 68 { |
| 71 visitor->trace(m_track); | 69 visitor->trace(m_track); |
| 72 Event::trace(visitor); | 70 Event::trace(visitor); |
| 73 } | 71 } |
| 74 | 72 |
| 75 } // namespace blink | 73 } // namespace blink |
| OLD | NEW |