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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2411553003: Notify WebMediaPlayer when its ancestor enters/exists fullscreen. (Closed)
Patch Set: Rebased. Add FullscreenObserver. Created 4 years, 2 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/HTMLMediaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.h b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
index a5fd674d44729cc1f010fcbc5a197f5c2db339b4..599b51c5affb47bd19b638de15c7fec01cc7f8cf 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.h
@@ -33,6 +33,7 @@
#include "core/CoreExport.h"
#include "core/dom/ActiveDOMObject.h"
#include "core/dom/ExceptionCode.h"
+#include "core/dom/Fullscreen.h"
#include "core/events/GenericEventQueue.h"
#include "core/html/AutoplayExperimentHelper.h"
#include "core/html/HTMLElement.h"
@@ -79,6 +80,7 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
public Supplementable<HTMLMediaElement>,
public ActiveScriptWrappable,
public ActiveDOMObject,
+ public Fullscreen::FullscreenObserver,
private WebMediaPlayerClient {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement);
@@ -360,6 +362,10 @@ class CORE_EXPORT HTMLMediaElement : public HTMLElement,
void setReadyState(ReadyState);
void setNetworkState(WebMediaPlayer::NetworkState);
+ // Fullscreen::FullscreenObserver implementation.
+ void onEnteredFullscreen() override;
+ void onExitedFullscreen() override;
+
// WebMediaPlayerClient implementation.
void networkStateChanged() final;
void readyStateChanged() final;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698