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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2692903002: Don't show media controls when there is a persistent video. (Closed)
Patch Set: rebase Created 3 years, 10 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/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index d5771fbc942596547437f4eb2b820f1b20f1b343..6f484137bb3d1a33fcdce643f10d339ea68ae38d 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -437,6 +437,16 @@ void Page::settingsChanged(SettingsDelegate::ChangeType changeType) {
}
}
} break;
+ case SettingsDelegate::MediaControlsChange:
+ for (Frame* frame = mainFrame(); frame;
+ frame = frame->tree().traverseNext()) {
+ if (!frame->isLocalFrame())
+ continue;
+ Document* doc = toLocalFrame(frame)->document();
+ if (doc)
+ HTMLMediaElement::onMediaControlsEnabledChange(doc);
+ }
+ break;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp ('k') | third_party/WebKit/Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698