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

Unified Diff: chrome/browser/ui/browser.cc

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index f5271f56602afac2fc6eee6546b834845bebded7..afb9c99b15c5da62e1e248211724e20ea53249c0 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1649,10 +1649,13 @@ bool Browser::EmbedsFullscreenWidget() const {
return true;
}
-void Browser::ToggleFullscreenModeForTab(WebContents* web_contents,
- bool enter_fullscreen) {
- fullscreen_controller_->ToggleFullscreenModeForTab(web_contents,
- enter_fullscreen);
+void Browser::EnterFullscreenModeForTab(WebContents* web_contents,
+ const GURL& origin) {
+ fullscreen_controller_->EnterFullscreenModeForTab(web_contents, origin);
+}
+
+void Browser::ExitFullscreenModeForTab(WebContents* web_contents) {
+ fullscreen_controller_->ExitFullscreenModeForTab(web_contents);
}
bool Browser::IsFullscreenForTabOrPending(

Powered by Google App Engine
This is Rietveld 408576698