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

Unified Diff: Source/web/FullscreenController.cpp

Issue 476763004: Rename FullscreenElementStack to just Fullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/FullscreenController.cpp
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp
index 7a269bf330f6d3de3eed49384b6f8b7b375602f2..7987d3fa471cc573031f0302a1154cd463e37df3 100644
--- a/Source/web/FullscreenController.cpp
+++ b/Source/web/FullscreenController.cpp
@@ -32,7 +32,7 @@
#include "web/FullscreenController.h"
#include "core/dom/Document.h"
-#include "core/dom/FullscreenElementStack.h"
+#include "core/dom/Fullscreen.h"
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLMediaElement.h"
#include "platform/LayoutTestSupport.h"
@@ -64,7 +64,7 @@ void FullscreenController::willEnterFullScreen()
// Ensure that this element's document is still attached.
Document& doc = m_provisionalFullScreenElement->document();
if (doc.frame()) {
- FullscreenElementStack::from(doc).willEnterFullScreenForElement(m_provisionalFullScreenElement.get());
+ Fullscreen::from(doc).willEnterFullScreenForElement(m_provisionalFullScreenElement.get());
m_fullScreenFrame = doc.frame();
}
m_provisionalFullScreenElement.clear();
@@ -76,7 +76,7 @@ void FullscreenController::didEnterFullScreen()
return;
if (Document* doc = m_fullScreenFrame->document()) {
- if (FullscreenElementStack::isFullScreen(*doc)) {
+ if (Fullscreen::isFullScreen(*doc)) {
if (!m_exitFullscreenPageScaleFactor) {
m_exitFullscreenPageScaleFactor = m_webViewImpl->pageScaleFactor();
m_exitFullscreenScrollOffset = m_webViewImpl->mainFrame()->scrollOffset();
@@ -86,9 +86,9 @@ void FullscreenController::didEnterFullScreen()
m_webViewImpl->setPinchViewportOffset(FloatPoint());
}
- FullscreenElementStack::from(*doc).didEnterFullScreenForElement(0);
+ Fullscreen::from(*doc).didEnterFullScreenForElement(0);
if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled()) {
- Element* element = FullscreenElementStack::currentFullScreenElementFrom(*doc);
+ Element* element = Fullscreen::currentFullScreenElementFrom(*doc);
ASSERT(element);
if (isHTMLMediaElement(*element)) {
HTMLMediaElement* mediaElement = toHTMLMediaElement(element);
@@ -111,7 +111,7 @@ void FullscreenController::willExitFullScreen()
return;
if (Document* doc = m_fullScreenFrame->document()) {
- FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(*doc);
+ Fullscreen* fullscreen = Fullscreen::fromIfExists(*doc);
if (!fullscreen)
return;
if (fullscreen->isFullScreen(*doc)) {
@@ -133,7 +133,7 @@ void FullscreenController::didExitFullScreen()
return;
if (Document* doc = m_fullScreenFrame->document()) {
- if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(*doc)) {
+ if (Fullscreen* fullscreen = Fullscreen::fromIfExists(*doc)) {
if (fullscreen->webkitIsFullScreen()) {
if (m_exitFullscreenPageScaleFactor) {
m_webViewImpl->setPageScaleFactor(m_exitFullscreenPageScaleFactor);
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698