Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(925)

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaStreamTrackEvent.cpp

Issue 2217763003: Remove Blink-WebKit-only document.createEvent strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 MediaStreamTrackEvent* MediaStreamTrackEvent::create()
32 {
33 return new MediaStreamTrackEvent;
34 }
35
36 MediaStreamTrackEvent* MediaStreamTrackEvent::create(const AtomicString& type, b ool canBubble, bool cancelable, MediaStreamTrack* track) 31 MediaStreamTrackEvent* MediaStreamTrackEvent::create(const AtomicString& type, b ool canBubble, bool cancelable, MediaStreamTrack* track)
37 { 32 {
38 return new MediaStreamTrackEvent(type, canBubble, cancelable, track); 33 return new MediaStreamTrackEvent(type, canBubble, cancelable, track);
39 } 34 }
40 35
41
42 MediaStreamTrackEvent::MediaStreamTrackEvent()
43 {
44 }
45
46 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB ubble, bool cancelable, MediaStreamTrack* track) 36 MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canB ubble, bool cancelable, MediaStreamTrack* track)
47 : Event(type, canBubble, cancelable) 37 : Event(type, canBubble, cancelable)
48 , m_track(track) 38 , m_track(track)
49 { 39 {
50 } 40 }
51 41
52 MediaStreamTrackEvent::~MediaStreamTrackEvent() 42 MediaStreamTrackEvent::~MediaStreamTrackEvent()
53 { 43 {
54 } 44 }
55 45
56 MediaStreamTrack* MediaStreamTrackEvent::track() const 46 MediaStreamTrack* MediaStreamTrackEvent::track() const
57 { 47 {
58 return m_track.get(); 48 return m_track.get();
59 } 49 }
60 50
61 const AtomicString& MediaStreamTrackEvent::interfaceName() const 51 const AtomicString& MediaStreamTrackEvent::interfaceName() const
62 { 52 {
63 return EventNames::MediaStreamTrackEvent; 53 return EventNames::MediaStreamTrackEvent;
64 } 54 }
65 55
66 DEFINE_TRACE(MediaStreamTrackEvent) 56 DEFINE_TRACE(MediaStreamTrackEvent)
67 { 57 {
68 visitor->trace(m_track); 58 visitor->trace(m_track);
69 Event::trace(visitor); 59 Event::trace(visitor);
70 } 60 }
71 61
72 } // namespace blink 62 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698