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

Unified Diff: chrome/browser/ui/panels/panel_manager.h

Issue 8686012: Make panels not show on top when there is an app running in full screen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge/Resolve. Created 9 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
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_manager.h
diff --git a/chrome/browser/ui/panels/panel_manager.h b/chrome/browser/ui/panels/panel_manager.h
index e7319b3c02008affcb1317627345e6305acb8ca3..897a84e07a7f08c80cdbfabccaaed4054635f0c4 100644
--- a/chrome/browser/ui/panels/panel_manager.h
+++ b/chrome/browser/ui/panels/panel_manager.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/lazy_instance.h"
#include "base/memory/scoped_ptr.h"
+#include "base/timer.h"
#include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h"
#include "chrome/browser/ui/panels/panel.h"
#include "ui/gfx/rect.h"
@@ -100,6 +101,8 @@ class PanelManager : public AutoHidingDesktopBar::Observer {
return panel_strip_.get();
}
+ bool is_full_screen() const { return is_full_screen_; }
+
#ifdef UNIT_TEST
static int horizontal_spacing() { return PanelStrip::horizontal_spacing(); }
@@ -155,6 +158,9 @@ class PanelManager : public AutoHidingDesktopBar::Observer {
// Positions the various groupings of panels.
void Layout();
+ // Tests if the current active app is in full screen mode.
+ void CheckFullScreenMode();
+
scoped_ptr<PanelStrip> panel_strip_;
// Use a mouse watcher to know when to bring up titlebars to "peek" at
@@ -179,6 +185,12 @@ class PanelManager : public AutoHidingDesktopBar::Observer {
// will not be affected.
bool auto_sizing_enabled_;
+ // Timer used to track if the current active app is in full screen mode.
+ base::RepeatingTimer<PanelManager> full_screen_mode_timer_;
+
+ // True if current active app is in full screen mode.
+ bool is_full_screen_;
+
DISALLOW_COPY_AND_ASSIGN(PanelManager);
};
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698