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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: Created 4 years, 1 month 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 void HTMLMediaElement::requestRemotePlayback() { 2268 void HTMLMediaElement::requestRemotePlayback() {
2269 if (webMediaPlayer()) 2269 if (webMediaPlayer())
2270 webMediaPlayer()->requestRemotePlayback(); 2270 webMediaPlayer()->requestRemotePlayback();
2271 } 2271 }
2272 2272
2273 void HTMLMediaElement::requestRemotePlaybackControl() { 2273 void HTMLMediaElement::requestRemotePlaybackControl() {
2274 if (webMediaPlayer()) 2274 if (webMediaPlayer())
2275 webMediaPlayer()->requestRemotePlaybackControl(); 2275 webMediaPlayer()->requestRemotePlaybackControl();
2276 } 2276 }
2277 2277
2278 void HTMLMediaElement::requestRemotePlaybackStop() {
2279 if (webMediaPlayer())
2280 webMediaPlayer()->requestRemotePlaybackStop();
2281 }
2282
2278 void HTMLMediaElement::closeMediaSource() { 2283 void HTMLMediaElement::closeMediaSource() {
2279 if (!m_mediaSource) 2284 if (!m_mediaSource)
2280 return; 2285 return;
2281 2286
2282 m_mediaSource->close(); 2287 m_mediaSource->close();
2283 m_mediaSource = nullptr; 2288 m_mediaSource = nullptr;
2284 } 2289 }
2285 2290
2286 bool HTMLMediaElement::loop() const { 2291 bool HTMLMediaElement::loop() const {
2287 return fastHasAttribute(loopAttr); 2292 return fastHasAttribute(loopAttr);
(...skipping 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after
4092 4097
4093 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() 4098 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect()
4094 const { 4099 const {
4095 IntRect result; 4100 IntRect result;
4096 if (LayoutObject* object = m_element->layoutObject()) 4101 if (LayoutObject* object = m_element->layoutObject())
4097 result = object->absoluteBoundingBoxRect(); 4102 result = object->absoluteBoundingBoxRect();
4098 return result; 4103 return result;
4099 } 4104 }
4100 4105
4101 } // namespace blink 4106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698