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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.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
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
index e1fdec4bd32aed432998e71587d77020996769a8..e465510c2985c62ec6a163b672afdba34354af9c 100644
--- a/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
@@ -1096,7 +1096,7 @@ void RTCPeerConnection::didAddRemoteStream(const WebMediaStream& remoteStream)
MediaStream* stream = MediaStream::create(getExecutionContext(), remoteStream);
m_remoteStreams.append(stream);
- scheduleDispatchEvent(MediaStreamEvent::create(EventTypeNames::addstream, false, false, stream));
+ scheduleDispatchEvent(MediaStreamEvent::create(EventTypeNames::addstream, stream));
}
void RTCPeerConnection::didRemoveRemoteStream(const WebMediaStream& remoteStream)
@@ -1117,7 +1117,7 @@ void RTCPeerConnection::didRemoveRemoteStream(const WebMediaStream& remoteStream
DCHECK(pos != kNotFound);
m_remoteStreams.remove(pos);
- scheduleDispatchEvent(MediaStreamEvent::create(EventTypeNames::removestream, false, false, stream));
+ scheduleDispatchEvent(MediaStreamEvent::create(EventTypeNames::removestream, stream));
}
void RTCPeerConnection::didAddRemoteDataChannel(WebRTCDataChannelHandler* handler)
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698