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 17 matching lines...) Expand all Loading... |
28 #include "core/events/ThreadLocalEventNames.h" | 28 #include "core/events/ThreadLocalEventNames.h" |
29 #include "modules/mediastream/MediaStreamTrack.h" | 29 #include "modules/mediastream/MediaStreamTrack.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create() | 33 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create() |
34 { | 34 { |
35 return adoptRef(new MediaStreamTrackEvent); | 35 return adoptRef(new MediaStreamTrackEvent); |
36 } | 36 } |
37 | 37 |
38 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicStri
ng& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) | 38 PassRefPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicStri
ng& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<MediaStreamTra
ck> track) |
39 { | 39 { |
40 return adoptRef(new MediaStreamTrackEvent(type, canBubble, cancelable, track
)); | 40 return adoptRef(new MediaStreamTrackEvent(type, canBubble, cancelable, track
)); |
41 } | 41 } |
42 | 42 |
43 | 43 |
44 MediaStreamTrackEvent::MediaStreamTrackEvent() | 44 MediaStreamTrackEvent::MediaStreamTrackEvent() |
45 { | 45 { |
46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
47 } | 47 } |
48 | 48 |
49 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, PassRefPtr<MediaStreamTrack> track) | 49 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB
ubble, bool cancelable, PassRefPtrWillBeRawPtr<MediaStreamTrack> track) |
50 : Event(type, canBubble, cancelable) | 50 : Event(type, canBubble, cancelable) |
51 , m_track(track) | 51 , m_track(track) |
52 { | 52 { |
53 ScriptWrappable::init(this); | 53 ScriptWrappable::init(this); |
54 } | 54 } |
55 | 55 |
56 MediaStreamTrackEvent::~MediaStreamTrackEvent() | 56 MediaStreamTrackEvent::~MediaStreamTrackEvent() |
57 { | 57 { |
58 } | 58 } |
59 | 59 |
60 MediaStreamTrack* MediaStreamTrackEvent::track() const | 60 MediaStreamTrack* MediaStreamTrackEvent::track() const |
61 { | 61 { |
62 return m_track.get(); | 62 return m_track.get(); |
63 } | 63 } |
64 | 64 |
65 const AtomicString& MediaStreamTrackEvent::interfaceName() const | 65 const AtomicString& MediaStreamTrackEvent::interfaceName() const |
66 { | 66 { |
67 return EventNames::MediaStreamTrackEvent; | 67 return EventNames::MediaStreamTrackEvent; |
68 } | 68 } |
69 | 69 |
70 } // namespace WebCore | 70 } // namespace WebCore |
71 | 71 |
OLD | NEW |