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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp

Issue 2780403004: Create core/html/media/ and move auxiliary media files in it. (Closed)
Patch Set: actually add autoplay files Created 3 years, 9 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/core/html/shadow/MediaControls.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
index 6fcf2642e672bbb9fa145f243b43bcf7045fa993..811996a545f6752fcf5a449b696119c926d17b1c 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
@@ -38,6 +38,7 @@
#include "core/frame/UseCounter.h"
#include "core/html/HTMLMediaElement.h"
#include "core/html/HTMLVideoElement.h"
+#include "core/html/media/HTMLMediaElementControlsList.h"
#include "core/html/shadow/MediaControlsMediaEventListener.h"
#include "core/html/shadow/MediaControlsOrientationLockDelegate.h"
#include "core/html/shadow/MediaControlsWindowEventListener.h"
@@ -88,7 +89,7 @@ static bool shouldShowFullscreenButton(const HTMLMediaElement& mediaElement) {
if (!Fullscreen::fullscreenEnabled(mediaElement.document()))
return false;
- if (mediaElement.controlsList()->shouldHideFullscreen()) {
+ if (mediaElement.controlsListInternal()->shouldHideFullscreen()) {
UseCounter::count(mediaElement.document(),
UseCounter::HTMLMediaElementControlsListNoFullscreen);
return false;
@@ -108,7 +109,7 @@ static bool shouldShowCastButton(HTMLMediaElement& mediaElement) {
return false;
// The page disabled the button via the attribute.
- if (mediaElement.controlsList()->shouldHideRemotePlayback()) {
+ if (mediaElement.controlsListInternal()->shouldHideRemotePlayback()) {
UseCounter::count(mediaElement.document(),
UseCounter::HTMLMediaElementControlsListNoRemotePlayback);
return false;

Powered by Google App Engine
This is Rietveld 408576698