diff options
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.cc | 12 | ||||
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index 1cd3394..53cc6ad 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -68,6 +68,7 @@ #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/tab_contents_view.h" #include "chrome/browser/window_sizer.h" +#include "chrome/common/chrome_switches.h" #include "chrome/common/gtk_util.h" #include "chrome/common/notification_service.h" #include "chrome/common/pref_names.h" @@ -1020,8 +1021,7 @@ bool BrowserWindowGtk::IsFullscreen() const { } bool BrowserWindowGtk::IsFullscreenBubbleVisible() const { - // There is no fullscreen bubble for Linux. - return false; + return fullscreen_exit_bubble_.get() ? true : false; } LocationBar* BrowserWindowGtk::GetLocationBar() const { @@ -1435,8 +1435,12 @@ void BrowserWindowGtk::OnStateChanged(GdkWindowState state, tabstrip_->Hide(); if (IsBookmarkBarSupported()) bookmark_bar_->EnterFullscreen(); - fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( - GTK_FLOATING_CONTAINER(render_area_floating_container_))); + bool is_kiosk =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode); + if (!is_kiosk) { + fullscreen_exit_bubble_.reset(new FullscreenExitBubbleGtk( + GTK_FLOATING_CONTAINER(render_area_floating_container_))); + } gtk_widget_hide(toolbar_border_); #if defined(OS_CHROMEOS) if (main_menu_button_) diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index dd241d1..348e0fb 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -894,12 +894,12 @@ void BrowserView::SetFullscreen(bool fullscreen) { if (fullscreen) { #if !defined(OS_MACOSX) - bool is_kosk = + bool is_kiosk = CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode); #else bool is_kiosk = false; #endif - if (!is_kosk) { + if (!is_kiosk) { fullscreen_bubble_.reset(new FullscreenExitBubble(GetWidget(), browser_.get())); } |