#if ENABLE(FULLSCREEN_API)
#include "Connection.h"
+#include "Logging.h"
#include "WebCoreArgumentCoders.h"
#include "WebFrame.h"
#include "WebFullScreenManagerProxyMessages.h"
}
WebFullScreenManager::WebFullScreenManager(WebPage* page)
- : m_topContentInset(0)
- , m_page(page)
+ : m_page(page)
{
}
void WebFullScreenManager::videoControlsManagerDidChange()
{
#if PLATFORM(IOS) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE))
+ LOG(Fullscreen, "WebFullScreenManager %p videoControlsManagerDidChange()", this);
+
auto* currentPlaybackControlsElement = m_page->playbackSessionManager().currentPlaybackControlsElement();
if (!m_element || !is<HTMLVideoElement>(currentPlaybackControlsElement)) {
setPIPStandbyElement(nullptr);
if (pipStandbyElement == m_pipStandbyElement)
return;
+ LOG(Fullscreen, "WebFullScreenManager %p setPIPStandbyElement() - old element %p, new element %p", this, m_pipStandbyElement.get(), pipStandbyElement);
+
if (m_pipStandbyElement)
m_pipStandbyElement->setVideoFullscreenStandby(false);
void WebFullScreenManager::enterFullScreenForElement(WebCore::Element* element)
{
+ LOG(Fullscreen, "WebFullScreenManager %p enterFullScreenForElement(%p)", this, element);
+
ASSERT(element);
m_element = element;
m_initialFrame = screenRectOfContents(m_element.get());
void WebFullScreenManager::exitFullScreenForElement(WebCore::Element* element)
{
+ LOG(Fullscreen, "WebFullScreenManager %p exitFullScreenForElement(%p) - fullscreen element %p", this, element, m_element.get());
m_page->injectedBundleFullScreenClient().exitFullScreenForElement(m_page.get(), element);
}
void WebFullScreenManager::willEnterFullScreen()
{
- ASSERT(m_element);
+ LOG(Fullscreen, "WebFullScreenManager %p willEnterFullScreen() - element %p", this, m_element.get());
+
m_element->document().webkitWillEnterFullScreenForElement(m_element.get());
#if !PLATFORM(IOS)
m_page->hidePageBanners();
void WebFullScreenManager::didEnterFullScreen()
{
- ASSERT(m_element);
+ LOG(Fullscreen, "WebFullScreenManager %p didEnterFullScreen() - element %p", this, m_element.get());
+
m_element->document().webkitDidEnterFullScreenForElement(m_element.get());
#if PLATFORM(IOS) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE))
void WebFullScreenManager::willExitFullScreen()
{
+ LOG(Fullscreen, "WebFullScreenManager %p willExitFullScreen() - element %p", this, m_element.get());
ASSERT(m_element);
#if ENABLE(VIDEO)
void WebFullScreenManager::didExitFullScreen()
{
+ LOG(Fullscreen, "WebFullScreenManager %p didExitFullScreen() - element %p", this, m_element.get());
+
ASSERT(m_element);
setFullscreenInsets(FloatBoxExtent());
setFullscreenAutoHideDuration(0_s);
void WebFullScreenManager::close()
{
+ LOG(Fullscreen, "WebFullScreenManager %p close()", this);
m_page->injectedBundleFullScreenClient().closeFullScreen(m_page.get());
}