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

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: Rebase, addressed comments 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 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 void HTMLMediaElement::requestRemotePlayback() { 2344 void HTMLMediaElement::requestRemotePlayback() {
2345 if (webMediaPlayer()) 2345 if (webMediaPlayer())
2346 webMediaPlayer()->requestRemotePlayback(); 2346 webMediaPlayer()->requestRemotePlayback();
2347 } 2347 }
2348 2348
2349 void HTMLMediaElement::requestRemotePlaybackControl() { 2349 void HTMLMediaElement::requestRemotePlaybackControl() {
2350 if (webMediaPlayer()) 2350 if (webMediaPlayer())
2351 webMediaPlayer()->requestRemotePlaybackControl(); 2351 webMediaPlayer()->requestRemotePlaybackControl();
2352 } 2352 }
2353 2353
2354 void HTMLMediaElement::requestRemotePlaybackStop() {
2355 if (webMediaPlayer())
2356 webMediaPlayer()->requestRemotePlaybackStop();
2357 }
2358
2354 void HTMLMediaElement::closeMediaSource() { 2359 void HTMLMediaElement::closeMediaSource() {
2355 if (!m_mediaSource) 2360 if (!m_mediaSource)
2356 return; 2361 return;
2357 2362
2358 m_mediaSource->close(); 2363 m_mediaSource->close();
2359 m_mediaSource = nullptr; 2364 m_mediaSource = nullptr;
2360 } 2365 }
2361 2366
2362 bool HTMLMediaElement::loop() const { 2367 bool HTMLMediaElement::loop() const {
2363 return fastHasAttribute(loopAttr); 2368 return fastHasAttribute(loopAttr);
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
4173 4178
4174 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() 4179 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect()
4175 const { 4180 const {
4176 IntRect result; 4181 IntRect result;
4177 if (LayoutObject* object = m_element->layoutObject()) 4182 if (LayoutObject* object = m_element->layoutObject())
4178 result = object->absoluteBoundingBoxRect(); 4183 result = object->absoluteBoundingBoxRect();
4179 return result; 4184 return result;
4180 } 4185 }
4181 4186
4182 } // namespace blink 4187 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698