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

Unified Diff: chrome/browser/ui/gtk/apps/native_app_window_gtk.cc

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/gtk/apps/native_app_window_gtk.cc
diff --git a/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc b/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc
index 56d4f5f3966c75251225e808c66cc0deb7ce9161..857d4343489a420380d866eae045b3acb68ce72e 100644
--- a/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc
+++ b/chrome/browser/ui/gtk/apps/native_app_window_gtk.cc
@@ -593,9 +593,10 @@ gboolean NativeAppWindowGtk::OnButtonPress(GtkWidget* widget,
// NativeAppWindow implementation:
-void NativeAppWindowGtk::SetFullscreen(bool fullscreen) {
+void NativeAppWindowGtk::SetFullscreen(int fullscreen_types) {
+ bool fullscreen = (fullscreen_types != ShellWindow::FULLSCREEN_TYPE_NONE);
content_thinks_its_fullscreen_ = fullscreen;
- if (fullscreen){
+ if (fullscreen) {
if (resizable_) {
gtk_window_fullscreen(window_);
} else {

Powered by Google App Engine
This is Rietveld 408576698