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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: s/AppHooksHelper/AppHooks 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/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index 9b915b95dd7d202ecce9b1fc70ecf556e1fd6bf5..d1787bbcc2bc6ccccfc29b7ea6ba24aa7074b4aa 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -54,13 +54,16 @@ namespace blink {
using namespace HTMLNames;
inline HTMLVideoElement::HTMLVideoElement(Document& document)
- : HTMLMediaElement(videoTag, document),
- m_customControlsFullscreenDetector(
- new MediaCustomControlsFullscreenDetector(*this)) {
+ : HTMLMediaElement(videoTag, document) {
if (document.settings()) {
m_defaultPosterURL =
AtomicString(document.settings()->getDefaultVideoPosterURL());
}
+
+ if (RuntimeEnabledFeatures::videoFullscreenDetectionEnabled()) {
+ m_customControlsFullscreenDetector =
+ new MediaCustomControlsFullscreenDetector(*this);
+ }
}
HTMLVideoElement* HTMLVideoElement::create(Document& document) {

Powered by Google App Engine
This is Rietveld 408576698