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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp

Issue 2347103003: Implement the MediaStreamTrackEvent constructor (Closed)
Patch Set: update webexposed 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
index 8545812f12f9fc25e4d28a70034a9ff69581c707..89b1cac4ee308a9ed153653a19be3c32509fe1f7 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
@@ -340,7 +340,7 @@ void MediaStream::addRemoteTrack(MediaStreamComponent* component)
track->registerMediaStream(this);
m_descriptor->addComponent(component);
- scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::addtrack, false, false, track));
+ scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::addtrack, track));
if (!active() && !track->ended()) {
m_descriptor->setActive(true);
@@ -379,7 +379,7 @@ void MediaStream::removeRemoteTrack(MediaStreamComponent* component)
MediaStreamTrack* track = (*tracks)[index];
track->unregisterMediaStream(this);
tracks->remove(index);
- scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::removetrack, false, false, track));
+ scheduleDispatchEvent(MediaStreamTrackEvent::create(EventTypeNames::removetrack, track));
if (active() && emptyOrOnlyEndedTracks()) {
m_descriptor->setActive(false);

Powered by Google App Engine
This is Rietveld 408576698