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

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: Bug fix to switch normal vs status levels. Created 9 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/panels/panel_manager.h
diff --git a/chrome/browser/ui/panels/panel_manager.h b/chrome/browser/ui/panels/panel_manager.h
index e7319b3c02008affcb1317627345e6305acb8ca3..6c6573bbf677122a5e2fc22d34ba96db9bcf54dd 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_mode_on() const { return is_full_screen_mode_on_; }
jianli 2011/12/02 00:04:45 nit: extra space.
prasadt 2011/12/02 00:29:39 Done.
+
#ifdef UNIT_TEST
static int horizontal_spacing() { return PanelStrip::horizontal_spacing(); }
@@ -179,6 +182,11 @@ 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_;
+ void CheckFullScreenMode();
jianli 2011/12/02 00:04:45 nit: it'd better to move this declaration to the a
prasadt 2011/12/02 00:29:39 Done.
+ bool is_full_screen_mode_on_;
+
DISALLOW_COPY_AND_ASSIGN(PanelManager);
};

Powered by Google App Engine
This is Rietveld 408576698