void WebFullScreenManager::willExitFullScreen() { ASSERT(m_element); m_finalFrame = screenRectOfContents(m_element.get()); m_element->document()->webkitWillExitFullScreenForElement(m_element.get()); m_page->injectedBundleFullScreenClient().beganExitFullScreen(m_page.get(), m_finalFrame, m_initialFrame); }
void WebFullScreenManager::enterFullScreenForElement(WebCore::Element* element) { ASSERT(element); m_element = element; m_initialFrame = screenRectOfContents(m_element.get()); m_page->injectedBundleFullScreenClient().enterFullScreenForElement(m_page.get(), element); }
void WebFullScreenManager::willEnterFullScreen() { ASSERT(m_element); m_element->document()->webkitWillEnterFullScreenForElement(m_element.get()); m_element->document()->updateLayout(); m_page->forceRepaintWithoutCallback(); m_finalFrame = screenRectOfContents(m_element.get()); m_page->injectedBundleFullScreenClient().beganEnterFullScreen(m_page.get(), m_initialFrame, m_finalFrame); }