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 d02fe76d8b9d30282cdf61eed5ffd7ffea9a1d8a..9d798a1f404b4a3f060aac70b49634a4d0c14de0 100644 |
--- a/chrome/browser/ui/panels/panel_manager.h |
+++ b/chrome/browser/ui/panels/panel_manager.h |
@@ -13,6 +13,7 @@ |
#include "base/timer.h" |
#include "chrome/browser/ui/panels/auto_hiding_desktop_bar.h" |
#include "chrome/browser/ui/panels/panel.h" |
+#include "chrome/browser/ui/panels/panel_strip.h" |
#include "ui/gfx/rect.h" |
class Browser; |
@@ -61,6 +62,15 @@ class PanelManager : public AutoHidingDesktopBar::Observer { |
// for panels that are auto-sized. |
void ResizePanel(Panel* panel, const gfx::Size& new_size); |
+ // Moves the |panel| to a different type of panel strip. |
+ void MovePanelToStrip(Panel* panel, PanelStrip::Type new_layout); |
+ |
+ // Move all panels up to, and including, the |last_panel_to_move| to overflow. |
+ void MovePanelsToOverflow(Panel* last_panel_to_move); |
+ |
+ // Moves as many panels out of overflow as space allows. |
+ void MovePanelsOutOfOverflowIfCanFit(); |
+ |
// Returns true if we should bring up the titlebars, given the current mouse |
// point. |
bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; |
@@ -206,6 +216,10 @@ class PanelManager : public AutoHidingDesktopBar::Observer { |
// True if current active app is in full screen mode. |
bool is_full_screen_; |
+ // True only while moving panels to overflow. Used to prevent moving panels |
+ // out of overflow while in the process of moving panels to overflow. |
+ bool is_processing_overflow_; |
+ |
DISALLOW_COPY_AND_ASSIGN(PanelManager); |
}; |