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

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: make try happy Created 5 years, 11 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 | « content/shell/browser/shell.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index 75256552811e7d44d4a196a296ee5385c13a0cd2..5357b1f871239e10ae4226234bccf220905dc0c2 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -307,6 +307,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)
« no previous file with comments | « content/shell/browser/shell.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698