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

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

Issue 1815033003: Add srcObject attribute of type MediaStream to HTMLMediaElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: philipj's comments Created 4 years, 8 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 8fa874cb42b83aa410ab20461a2e8f5cc09b168b..ca0bd5cbb21de427a0fa8fd8e2edcfcd13f97634 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaStream.cpp
@@ -421,4 +421,9 @@ DEFINE_TRACE(MediaStream)
MediaStreamDescriptorClient::trace(visitor);
}
+MediaStream* toMediaStream(MediaStreamDescriptor* descriptor)
+{
+ return static_cast<MediaStream*>(descriptor->client());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698