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

Unified Diff: content/shell/browser/shell.cc

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update webcontentsdelegateandroid Created 6 years 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
Index: content/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index 58b53e2d11ed169ca37c0c6a328bd1d2942510f1..653afc56562848d9fedbfcf59d639442614c3aba 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -286,6 +286,15 @@ void Shell::LoadingStateChanged(WebContents* source,
PlatformSetIsLoading(source->IsLoading());
}
+void Shell::EnterFullscreenModeForTab(WebContents* web_contents,
+ const GURL& origin) {
+ ToggleFullscreenModeForTab(web_contents, true);
+}
+
+void Shell::ExitFullscreenModeForTab(WebContents* web_contents) {
+ ToggleFullscreenModeForTab(web_contents, false);
+}
+
void Shell::ToggleFullscreenModeForTab(WebContents* web_contents,
bool enter_fullscreen) {
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698