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

Unified Diff: Source/web/FullscreenController.cpp

Issue 646403002: NOT FOR REVIEW: Alternative for supporting fullscreen for non-media in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | public/web/WebWidgetClient.h » ('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 e16af27be5dd23f69bd324e115ca684d1abf0c3a..a76501e87498de2591af33e01fbcbd1b01c3b1f1 100644
--- a/Source/web/FullscreenController.cpp
+++ b/Source/web/FullscreenController.cpp
@@ -144,7 +144,7 @@ void FullscreenController::enterFullScreenForElement(Element* element)
// We need to transition to fullscreen mode.
if (WebViewClient* client = m_webViewImpl->client()) {
- if (client->enterFullScreen())
+ if (client->enterFullScreen(isHTMLVideoElement(element)))
m_provisionalFullScreenElement = element;
}
}
@@ -155,7 +155,7 @@ void FullscreenController::exitFullScreenForElement(Element* element)
if (m_isCancelingFullScreen)
return;
if (WebViewClient* client = m_webViewImpl->client())
- client->exitFullScreen();
+ client->exitFullScreen(isHTMLVideoElement(element));
}
void FullscreenController::trace(Visitor* visitor)
« no previous file with comments | « no previous file | public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698