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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 449133003: Move Web-facing fullscreen APIs to DocumentFullscreen and ElementFullscreen (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/WebElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index c03922caf383c0d5a2ab84d3457a1d6476081135..4617f1931e14f4b54f647bcae900dd07032b1a65 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -5541,7 +5541,7 @@ TEST_F(WebFrameTest, FullscreenLayerNonScrollable)
Document* document = toWebLocalFrameImpl(webViewImpl->mainFrame())->frame()->document();
blink::UserGestureIndicator gesture(blink::DefinitelyProcessingUserGesture);
Element* divFullscreen = document->getElementById("div1");
- divFullscreen->webkitRequestFullscreen();
+ FullscreenElementStack::from(*document).requestFullscreen(*divFullscreen, FullscreenElementStack::PrefixedRequest);
webViewImpl->willEnterFullScreen();
webViewImpl->didEnterFullScreen();
webViewImpl->layout();
@@ -5573,7 +5573,7 @@ TEST_F(WebFrameTest, FullscreenMainFrameScrollable)
Document* document = toWebLocalFrameImpl(webViewImpl->mainFrame())->frame()->document();
blink::UserGestureIndicator gesture(blink::DefinitelyProcessingUserGesture);
- document->documentElement()->webkitRequestFullscreen();
+ FullscreenElementStack::from(*document).requestFullscreen(*document->documentElement(), FullscreenElementStack::PrefixedRequest);
webViewImpl->willEnterFullScreen();
webViewImpl->didEnterFullScreen();
webViewImpl->layout();
« no previous file with comments | « Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698