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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp

Issue 2432173006: [Blink, RemotePlayback] Handle disabling remote playback (Closed)
Patch Set: Fixed the static method calls Created 4 years, 2 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/remoteplayback/HTMLMediaElementRemotePlayback.cpp
diff --git a/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
index 40ad55bddfe176f13268f245cf57cfaf4a3f1c94..e10c8728030a6cc212e0b962035340295242c4c6 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/HTMLMediaElementRemotePlayback.cpp
@@ -27,6 +27,11 @@ void HTMLMediaElementRemotePlayback::setBooleanAttribute(
bool value) {
ASSERT(name == HTMLNames::disableremoteplaybackAttr);
element.setBooleanAttribute(name, value);
+
+ HTMLMediaElementRemotePlayback& self =
+ HTMLMediaElementRemotePlayback::from(element);
+ if (self.m_remote && value)
+ self.m_remote->remotePlaybackDisabled();
}
// static

Powered by Google App Engine
This is Rietveld 408576698